[FFmpeg-cvslog] avidec: dont randomly skip packets for offseting the index

Michael Niedermayer git at videolan.org
Fri May 17 23:03:19 CEST 2013


ffmpeg | branch: release/1.0 | Michael Niedermayer <michaelni at gmx.at> | Fri May 17 22:03:14 2013 +0200| [663b22325891c77efd76779f37d34621d68b6930] | 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=663b22325891c77efd76779f37d34621d68b6930
---

 libavformat/avidec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 01813e4..cf5f86f 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -990,9 +990,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