summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-17 22:03:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-17 22:16:10 +0200
commit6c593f1b671b7725b8c36f92f7c0a23ccf8e7628 (patch)
treed5b7b3a22675a1d58baac6018adb1dd9d10dd497 /libavformat
parent24c65eb29f05e9634ba1d32d81221e8644bbeb19 (diff)
downloadffmpeg-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.c4
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) {
OpenPOWER on IntegriCloud