summaryrefslogtreecommitdiff
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-03-19 21:57:14 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-03-19 21:57:14 +0000
commit876578914ba219c627aabf48d5f71151b37d6906 (patch)
tree608bddfa43c6b12a4963102a970cbb1bcc37a385 /libavformat/avidec.c
parent3a5601885b46c2dc97e85afa33075b41236a0170 (diff)
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
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 78e5051e1e..217a5133f3 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -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;