diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-11-29 00:51:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-03 00:23:38 +0100 |
| commit | 8798bfab1539c3ac6031bb325e1b181c58b13fc5 (patch) | |
| tree | 9352ecbe44b970855513e85b7e24854b7628d87f /src/lib/audio_decoder.h | |
| parent | 5000e8b9dfe2807926e8fe1cb2dfc42ca319c7f6 (diff) | |
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.
Diffstat (limited to 'src/lib/audio_decoder.h')
| -rw-r--r-- | src/lib/audio_decoder.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<const AudioContent> content, bool fast); boost::optional<dcpomatic::ContentTime> position (boost::shared_ptr<const Film> film) const; - void emit (boost::shared_ptr<const Film> film, AudioStreamPtr stream, boost::shared_ptr<const AudioBuffers>, dcpomatic::ContentTime); + void emit (boost::shared_ptr<const Film> film, AudioStreamPtr stream, boost::shared_ptr<const AudioBuffers>, dcpomatic::ContentTime, bool time_already_delayed = false); void seek (); void flush (); |
