Browse Source

avi: directly resync on DV in AVI read failure

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
tags/n2.1
Luca Barbato 12 years ago
parent
commit
ceec6e792e
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/avidec.c

+ 2
- 0
libavformat/avidec.c View File

@@ -1061,6 +1061,8 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
int size = avpriv_dv_get_packet(avi->dv_demux, pkt); int size = avpriv_dv_get_packet(avi->dv_demux, pkt);
if (size >= 0) if (size >= 0)
return size; return size;
else
goto resync;
} }


if (avi->non_interleaved) { if (avi->non_interleaved) {


Loading…
Cancel
Save