mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-10-01 00:54:33 +02:00
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
This commit is contained in:
parent
3a5601885b
commit
876578914b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user