aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-13 19:46:29 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-13 19:46:29 +0100
commit6c39b3c278e2367056c7b53c8d48d4259a085e61 (patch)
tree133159dde3d1d874f832aea8afaecbb344ec5fde /ffmpeg.c
parent53be37e368928e7f274e33ef8d118109da373c79 (diff)
downloadffmpeg-6c39b3c278e2367056c7b53c8d48d4259a085e61.tar.gz
ffmpeg: reset dts/pts after decoding the first subpacket
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 4 insertions, 0 deletions
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)