From ceec6e792e4b5baaa23b220f4fd33417631f5288 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Tue, 6 Aug 2013 03:52:48 +0200 Subject: [PATCH] avi: directly resync on DV in AVI read failure Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org --- libavformat/avidec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 9396a20c04..edc9c93c81 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) {