From 6c39b3c278e2367056c7b53c8d48d4259a085e61 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 13 Dec 2011 19:46:29 +0100 Subject: [PATCH] ffmpeg: reset dts/pts after decoding the first subpacket Signed-off-by: Michael Niedermayer --- ffmpeg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index cc8f2fc618..0728c4e255 100644 --- 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)