]> git.sesse.net Git - nageru/commit
Reset jitter history when frame rate changes.
authorSteinar H. Gunderson <steinar+nageru@gunderson.no>
Sun, 30 Aug 2020 22:25:40 +0000 (00:25 +0200)
committerSteinar H. Gunderson <steinar+nageru@gunderson.no>
Sat, 12 Dec 2020 13:55:42 +0000 (14:55 +0100)
commitccc8294ad233bf3b85545c15c63100d54e485e63
tree21a3be194cf6fb0f9b88c913ad6fedff044ebd2c
parent91398c6aaab0f999090821577240b94f7bcd6d9d
Reset jitter history when frame rate changes.

This is seemingly especially important when we have input format autodetect
and PAL input rates; it gives us one 59.97 fps frame, then a delay as the
card autodetects and resyncs (might be as much as 30–50 ms; not entirely sure),
and then a steady stream of 50 fps frames. This then causes us to overestimate
the jitter by a lot until we get more than 1000 frames and can reject that
very first event as the outlier it is.
nageru/mixer.cpp
nageru/queue_length_policy.h