[FFmpeg-cvslog] r18052 - trunk/libavformat/avidec.c

bcoudurier subversion
Thu Mar 19 22:57:14 CET 2009


Author: bcoudurier
Date: Thu Mar 19 22:57:14 2009
New Revision: 18052

Log:
set avi fsize to INT64_MAX if riff tag end is not set and file size is not available

Modified:
   trunk/libavformat/avidec.c

Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	Thu Mar 19 22:54:34 2009	(r18051)
+++ trunk/libavformat/avidec.c	Thu Mar 19 22:57:14 2009	(r18052)
@@ -260,7 +260,7 @@ static int avi_read_header(AVFormatConte
 
     avi->fsize = url_fsize(pb);
     if(avi->fsize<=0)
-        avi->fsize= avi->riff_end;
+        avi->fsize= avi->riff_end == 8 ? INT64_MAX : avi->riff_end;
 
     /* first list tag */
     stream_index = -1;




More information about the ffmpeg-cvslog mailing list