Obey audio timestamps if they don't deviate by more than some threshold.
authorCarl Hetherington <cth@carlh.net>
Sat, 28 Nov 2020 23:51:38 +0000 (00:51 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 2 Dec 2020 23:23:38 +0000 (00:23 +0100)
commit8798bfab1539c3ac6031bb325e1b181c58b13fc5
tree9352ecbe44b970855513e85b7e24854b7628d87f
parent5000e8b9dfe2807926e8fe1cb2dfc42ca319c7f6
Obey audio timestamps if they don't deviate by more than some threshold.

Previously we would ignore audio timestamps because they are not
contiguous in a sample-accurate way.

However with bugs like #1833 we do need to obey large discontinuities
in audio timestamps, otherwise we get large sync errors.

Here we change timestamp handling to ignore small discontinuities
in timestamps but not larger ones.
src/lib/audio_decoder.cc
src/lib/audio_decoder.h
src/lib/ffmpeg_decoder.cc
test/content_test.cc