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:
Raja Subramanian
2023-03-26 12:52:50 +05:30
committed by GitHub
parent 2fce780ce8
commit afdae26972

View File

@@ -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)