Apply repair to the newest cached report (#2186)

This commit is contained in:
Raja Subramanian
2023-10-26 03:43:52 +05:30
committed by GitHub
parent d8e4933dd1
commit 047a4ac870
+3
View File
@@ -700,6 +700,9 @@ func (r *RTPStatsSender) GetRtcpSenderReport(ssrc uint32, calculatedClockRate ui
ntpDiffSinceLast := nowNTP.Time().Sub(r.srNewest.NTPTimestamp.Time())
nowRTPExt = r.srNewest.RTPTimestampExt + uint64(ntpDiffSinceLast.Seconds()*float64(r.params.ClockRate))
nowRTP = uint32(nowRTPExt)
srData.RTPTimestamp = nowRTP
srData.RTPTimestampExt = nowRTPExt
}
r.srNewest = srData