[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.1 | Michael Niedermayer <michaelni at gmx.at> | Fri May 17 22:03:14 2013 +0200| [f544553c2993163da1797d01ee79d9c3e5f607b6] | 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=f544553c2993163da1797d01ee79d9c3e5f607b6
---

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

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 00145e0..7177105 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1000,9 +1000,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