From: Michael Niedermayer Date: Tue, 13 Dec 2011 18:47:57 +0000 (+0100) Subject: decoding example: reset pts/dts after subpacket. X-Git-Tag: android-x86-4.4-r1~14470 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0e187fd13c2e38e8ec90757101c33410c69ac16a;p=android-x86%2Fexternal-ffmpeg.git decoding example: reset pts/dts after subpacket. Signed-off-by: Michael Niedermayer --- 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