diff options
author | wm4 <wm4@nowhere> | 2015-11-08 17:22:56 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-08 17:22:56 +0100 |
commit | d91434756b1bd16d788d93e6b888c2d1a54f1968 (patch) | |
tree | a1960427fac54e8ecbf2f2309dafdefb2d663aaa /audio/audio.h | |
parent | 03013e0fd73cde9b0dc7f2d65387491000ee894b (diff) | |
download | mpv-d91434756b1bd16d788d93e6b888c2d1a54f1968.tar.bz2 mpv-d91434756b1bd16d788d93e6b888c2d1a54f1968.tar.xz |
audio: move PTS setting out of the decoder
Instead of requiring the decoder to set the PTS directly on the
dec_audio context (including handling absence of PTS etc.), transfer the
packet PTS to the decoded audio frame. Marginally simpler, and gives
more control to the generic code.
Diffstat (limited to 'audio/audio.h')
-rw-r--r-- | audio/audio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/audio.h b/audio/audio.h index bf5358274a..c74d0f778c 100644 --- a/audio/audio.h +++ b/audio/audio.h @@ -37,6 +37,8 @@ struct mp_audio { int num_planes; // number of planes int bps; // size of sub-samples (af_fmt_to_bytes(format)) + double pts; // currently invalid within the filter chain + // --- private // These do not necessarily map directly to planes[]. They can have // different order or count. There shouldn't be more buffers than planes. |