Commit 44598396 authored by michael's avatar michael

fix demuxing of broken MVI_3011.avi


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8317 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 802e5b10
......@@ -503,6 +503,13 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
sscanf(str_track, "%d", &s->track);
break;
default:
if(size > 1000000){
av_log(s, AV_LOG_ERROR, "well something went wrong during header parsing, "
"ill ignore it and try to continue anyway\n");
avi->movi_list = url_ftell(pb) - 4;
avi->movi_end = url_fsize(pb);
goto end_of_header;
}
/* skip tag */
size += (size & 1);
url_fskip(pb, size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment