diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-13 19:46:29 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-13 19:46:29 +0100 |
commit | 6c39b3c278e2367056c7b53c8d48d4259a085e61 (patch) | |
tree | 133159dde3d1d874f832aea8afaecbb344ec5fde /ffmpeg.c | |
parent | 53be37e368928e7f274e33ef8d118109da373c79 (diff) | |
download | ffmpeg-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |