diff options
author | wm4 <wm4@nowhere> | 2018-02-12 18:00:23 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-02-13 17:45:29 -0800 |
commit | 02f9087de9103784a236f50d4b0990069ae9cf1e (patch) | |
tree | ffedf5a29e66ab95494a67e69e761383441a44cf /filters/f_decoder_wrapper.h | |
parent | 562f563ff1835daa0d749d1e9bcbe389412ffd98 (diff) |
audio: move back PTS jump detection to before filter chain
The recent changes to player/audio.c moved PTS jump detection to after
audio filtering. This was mostly done for convenience, because dataflow
between decoder and filters was made "automatic", and jump detection
would have to be done as filter. Now move it back to after decoders,
again out of convenience. The future direction is to make the dataflow
between filters and AO automatic, so this is a bit in the way. Another
reason is that speed changes tend to cause jumps - these are legitimate,
but get annoying quickly.
Diffstat (limited to 'filters/f_decoder_wrapper.h')
-rw-r--r-- | filters/f_decoder_wrapper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/filters/f_decoder_wrapper.h b/filters/f_decoder_wrapper.h index e6601052a2..119e0f9eb6 100644 --- a/filters/f_decoder_wrapper.h +++ b/filters/f_decoder_wrapper.h @@ -51,6 +51,9 @@ struct mp_decoder_wrapper { // Prefer spdif wrapper over real decoders. bool try_spdif; + + // A pts reset was observed (audio only, heuristic). + bool pts_reset; }; // Create the decoder wrapper for the given stream, plus underlying decoder. |