[FFmpeg-cvslog] avi: directly resync on DV in AVI read failure

Luca Barbato git at videolan.org
Thu Oct 10 11:37:09 CEST 2013


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue Aug  6 03:52:48 2013 +0200| [ceec6e792e4b5baaa23b220f4fd33417631f5288] | committer: Luca Barbato

avi: directly resync on DV in AVI read failure

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ceec6e792e4b5baaa23b220f4fd33417631f5288
---

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

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 9396a20..edc9c93 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1061,6 +1061,8 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
         int size = avpriv_dv_get_packet(avi->dv_demux, pkt);
         if (size >= 0)
             return size;
+        else
+            goto resync;
     }
 
     if (avi->non_interleaved) {



More information about the ffmpeg-cvslog mailing list