diff avidec.c @ 4753:290a386de8d4 libavformat

set avi fsize to INT64_MAX if riff tag end is not set and file size is not available
author bcoudurier
date Thu, 19 Mar 2009 21:57:14 +0000
parents fd360a55f56d
children 95ea72d4e51d
line wrap: on
line diff
--- a/avidec.c	Thu Mar 19 21:54:34 2009 +0000
+++ b/avidec.c	Thu Mar 19 21:57:14 2009 +0000
@@ -260,7 +260,7 @@
 
     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;