From 1c265180f1f89a932bff0d06925c611e69ead1d8 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Sun, 11 Aug 2024 11:14:40 +0530 Subject: [PATCH] Fix ARM compile. (#2923) (1 << 32) was outside range for 32-bit arch. --- pkg/sfu/buffer/rtpstats_receiver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/sfu/buffer/rtpstats_receiver.go b/pkg/sfu/buffer/rtpstats_receiver.go index 8944b96b..3ac1461f 100644 --- a/pkg/sfu/buffer/rtpstats_receiver.go +++ b/pkg/sfu/buffer/rtpstats_receiver.go @@ -143,7 +143,7 @@ func (r *RTPStatsReceiver) getTSRolloverCount(diffNano int64, ts uint32) int { return -1 } - excess := int((diffNano - r.tsRolloverThreshold*2) * int64(r.params.ClockRate) / 1e9) + excess := (diffNano - r.tsRolloverThreshold*2) * int64(r.params.ClockRate) / 1e9 roc := excess / (1 << 32) if roc < 0 { roc = 0 @@ -151,7 +151,7 @@ func (r *RTPStatsReceiver) getTSRolloverCount(diffNano int64, ts uint32) int { if r.timestamp.GetHighest() > ts { roc++ } - return roc + return int(roc) } func (r *RTPStatsReceiver) Update(