From 0e187fd13c2e38e8ec90757101c33410c69ac16a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 13 Dec 2011 19:47:57 +0100 Subject: decoding example: reset pts/dts after subpacket. Signed-off-by: Michael Niedermayer --- doc/examples/decoding_encoding.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/examples/decoding_encoding.c b/doc/examples/decoding_encoding.c index f87a8c9c41..5271edf34e 100644 --- a/doc/examples/decoding_encoding.c +++ b/doc/examples/decoding_encoding.c @@ -180,6 +180,8 @@ static void audio_decode_example(const char *outfilename, const char *filename) } avpkt.size -= len; avpkt.data += len; + avpkt.dts = + avpkt.pts = AV_NOPTS_VALUE; if (avpkt.size < AUDIO_REFILL_THRESH) { /* Refill the input buffer, to avoid trying to decode * incomplete frames. Instead of this, one could also use -- cgit v1.2.3