Skip to content
Snippets Groups Projects
Commit 87657891 authored by Baptiste Coudurier's avatar Baptiste Coudurier
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -260,7 +260,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -260,7 +260,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
avi->fsize = url_fsize(pb); avi->fsize = url_fsize(pb);
if(avi->fsize<=0) if(avi->fsize<=0)
avi->fsize= avi->riff_end; avi->fsize= avi->riff_end == 8 ? INT64_MAX : avi->riff_end;
/* first list tag */ /* first list tag */
stream_index = -1; stream_index = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment