Commit 87657891 authored by Baptiste Coudurier's avatar Baptiste Coudurier

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

Originally committed as revision 18052 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 3a560188
......@@ -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;
......
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