diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-17 22:03:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-17 22:16:10 +0200 |
commit | 6c593f1b671b7725b8c36f92f7c0a23ccf8e7628 (patch) | |
tree | d5b7b3a22675a1d58baac6018adb1dd9d10dd497 /libavformat | |
parent | 24c65eb29f05e9634ba1d32d81221e8644bbeb19 (diff) | |
download | ffmpeg-streaming-6c593f1b671b7725b8c36f92f7c0a23ccf8e7628.zip ffmpeg-streaming-6c593f1b671b7725b8c36f92f7c0a23ccf8e7628.tar.gz |
avidec: dont randomly skip packets for offseting the index
Fixes Ticket2490
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avidec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index b80effc..f5c2345 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -1022,9 +1022,9 @@ start_sync: || st->discard >= AVDISCARD_ALL){ if (!exit_early) { ast->frame_offset += get_duration(ast, size); + avio_skip(pb, size); + goto start_sync; } - avio_skip(pb, size); - goto start_sync; } if (d[2] == 'p' && d[3] == 'c' && size<=4*256+4) { |