ffmpeg: reset dts/pts after decoding the first subpacket
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Dec 2011 18:46:29 +0000 (19:46 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Dec 2011 18:46:29 +0000 (19:46 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index cc8f2fc..0728c4e 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2047,6 +2047,10 @@ static int output_packet(InputStream *ist,
 
         if (ret < 0)
             return ret;
+
+        avpkt.dts=
+        avpkt.pts= AV_NOPTS_VALUE;
+
         // touch data and size only if not EOF
         if (pkt) {
             if(ist->st->codec->codec_type != AVMEDIA_TYPE_AUDIO)