From d8aaa45dd1d545226727c331a3cee7a2dc1a1142 Mon Sep 17 00:00:00 2001 From: "Jibon L. Costa" Date: Wed, 14 Oct 2026 12:18:36 +0200 Subject: [PATCH] fix: compute RTCP receiver-report DLSR from monotonic clock (#5005) --- pkg/sfu/rtpstats/rtpstats_receiver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sfu/rtpstats/rtpstats_receiver.go b/pkg/sfu/rtpstats/rtpstats_receiver.go index 90f7eb2b2..bb49c13a5 100644 --- a/pkg/sfu/rtpstats/rtpstats_receiver.go +++ b/pkg/sfu/rtpstats/rtpstats_receiver.go @@ -868,7 +868,7 @@ func (r *RTPStatsReceiver) GetRtcpReceptionReport(ssrc uint32, proxyFracLost uin if r.srNewest != nil { lastSR = uint32(r.srNewest.NtpTimestamp >> 16) if r.srNewest.At != 0 { - delayUS := time.Since(time.Unix(0, r.srNewest.At)).Microseconds() + delayUS := (mono.UnixNano() - r.srNewest.At) / 1e3 dlsr = uint32(delayUS * 65536 / 1e6) } }