diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 60375394d7..44ab9d9a3f 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -1162,6 +1162,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) {