mirror of
https://github.com/livekit/livekit.git
synced 2026-08-29 03:18:47 +00:00
Apply repair to the newest cached report (#2186)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user