OSDN Git Service

set avi fsize to INT64_MAX if riff tag end is not set and file size is not available
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 19 Mar 2009 21:57:14 +0000 (21:57 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 19 Mar 2009 21:57:14 +0000 (21:57 +0000)
Originally committed as revision 18052 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/avidec.c

index 78e5051..217a513 100644 (file)
@@ -260,7 +260,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
 
     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;