[Ffmpeg-cvslog] r8317 - trunk/libavformat/avidec.c
michael
subversion
Sat Mar 10 20:30:59 CET 2007
Author: michael
Date: Sat Mar 10 20:30:59 2007
New Revision: 8317
Modified:
trunk/libavformat/avidec.c
Log:
fix demuxing of broken MVI_3011.avi
Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c (original)
+++ trunk/libavformat/avidec.c Sat Mar 10 20:30:59 2007
@@ -503,6 +503,13 @@ static int avi_read_header(AVFormatConte
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);
More information about the ffmpeg-cvslog
mailing list