[SCM] libav/experimental: set avi fsize to INT64_MAX if riff tag end is not set and file size is not available
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:41:45 UTC 2013
The following commit has been merged in the experimental branch:
commit 876578914ba219c627aabf48d5f71151b37d6906
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date: Thu Mar 19 21:57:14 2009 +0000
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
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 78e5051..217a513 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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list