[FFmpeg-cvslog] avidec: dont randomly skip packets for offseting the index
Michael Niedermayer
git at videolan.org
Fri May 17 23:03:16 CEST 2013
ffmpeg | branch: release/0.10 | Michael Niedermayer <michaelni at gmx.at> | Fri May 17 22:03:14 2013 +0200| [1c655c1419afc2fdaf28093bd11d2297165838da] | committer: Carl Eugen Hoyos
avidec: dont randomly skip packets for offseting the index
Fixes Ticket2490
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 6c593f1b671b7725b8c36f92f7c0a23ccf8e7628)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1c655c1419afc2fdaf28093bd11d2297165838da
---
libavformat/avidec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index c0b6308..9c13f43 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -985,9 +985,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) {
More information about the ffmpeg-cvslog
mailing list