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

Luca Barbato git at videolan.org
Sun Jan 12 16:57:22 CET 2014


ffmpeg | branch: release/1.1 | Luca Barbato <lu_zero at gentoo.org> | Tue Aug  6 03:52:48 2013 +0200| [61057f4604eb909ac2b37f08c7d2b0ed758fd4bf] | committer: Reinhard Tartler

avi: directly resync on DV in AVI read failure

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org
(cherry picked from commit ceec6e792e4b5baaa23b220f4fd33417631f5288)
Signed-off-by: Reinhard Tartler <siretart at tauware.de>

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

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

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index e0c1988..109b0ab 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -990,6 +990,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