From 8798bfab1539c3ac6031bb325e1b181c58b13fc5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 29 Nov 2020 00:51:38 +0100 Subject: 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.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/audio_decoder.h') diff --git a/src/lib/audio_decoder.h b/src/lib/audio_decoder.h index 8bd65a671..897ddb7e4 100644 --- a/src/lib/audio_decoder.h +++ b/src/lib/audio_decoder.h @@ -48,7 +48,7 @@ public: AudioDecoder (Decoder* parent, boost::shared_ptr content, bool fast); boost::optional position (boost::shared_ptr film) const; - void emit (boost::shared_ptr film, AudioStreamPtr stream, boost::shared_ptr, dcpomatic::ContentTime); + void emit (boost::shared_ptr film, AudioStreamPtr stream, boost::shared_ptr, dcpomatic::ContentTime, bool time_already_delayed = false); void seek (); void flush (); -- cgit v1.2.3