aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-08-06 03:52:48 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-10-10 07:28:17 +0200
commitceec6e792e4b5baaa23b220f4fd33417631f5288 (patch)
tree507cb408be3a23535ff9f5984f225b1e0843291f
parent756547ce7f4d67a18663503e2157aebed3531703 (diff)
downloadffmpeg-ceec6e792e4b5baaa23b220f4fd33417631f5288.tar.gz
avi: directly resync on DV in AVI read failure
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
-rw-r--r--libavformat/avidec.c2
1 files changed, 2 insertions, 0 deletions
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) {