From d91434756b1bd16d788d93e6b888c2d1a54f1968 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 8 Nov 2015 17:22:56 +0100 Subject: 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. --- audio/audio.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio/audio.h') 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. -- cgit v1.2.3