mirror of
https://github.com/livekit/livekit.git
synced 2026-04-05 18:55:39 +00:00
Log timestamp jumps greater than 0.5 seconds. (#1551)
Would be good to check if this happens and if it correlates to any A/V sync reports.
This commit is contained in:
@@ -1422,6 +1422,9 @@ func (f *Forwarder) getTranslationParamsCommon(extPkt *buffer.ExtPacket, layer i
|
||||
if td == 0 || td > (1<<31) {
|
||||
f.logger.Debugw("reference timestamp out-of-order, using default", "lastTS", last.LastTS, "refTS", refTS, "td", int32(td))
|
||||
td = 1
|
||||
} else if td > uint32(0.5*float32(f.codec.ClockRate)) {
|
||||
// log jumps greater than 0.5 seconds
|
||||
f.logger.Debugw("reference timestamp too far ahead", "lastTS", last.LastTS, "refTS", refTS, "td", td)
|
||||
}
|
||||
} else {
|
||||
f.logger.Debugw("reference timestamp get error, using default", "error", err)
|
||||
|
||||
Reference in New Issue
Block a user