diff options
author | Michael Niedermayer <[email protected]> | 2011-12-13 19:46:29 +0100 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2012-01-03 18:24:04 +0100 |
commit | c575d63ac2dd3dd925d5e855fe36bf537264f138 (patch) | |
tree | 16ef53202d88a63a61fe3c85e2874203661dfe64 | |
parent | 3f1e77a44c10b4468e7d5ac64fdc371fdeaf923a (diff) |
ffmpeg: reset dts/pts after decoding the first subpacket
Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit 6c39b3c278e2367056c7b53c8d48d4259a085e61)
Signed-off-by: Michael Niedermayer <[email protected]>
-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) |