[FFmpeg-cvslog] westwooddemux: dont require avio_size() functionality.

Michael Niedermayer git at videolan.org
Fri Dec 16 03:26:56 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 16 01:32:28 2011 +0100| [e2a16e82b13d5dbf7567a4acf44619057f19eb9d] | committer: Michael Niedermayer

westwooddemux: dont require avio_size() functionality.
Found by reimar

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e2a16e82b13d5dbf7567a4acf44619057f19eb9d
---

 libavformat/westwood.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/westwood.c b/libavformat/westwood.c
index c46c3ba..b803b68 100644
--- a/libavformat/westwood.c
+++ b/libavformat/westwood.c
@@ -324,7 +324,7 @@ static int wsvqa_read_packet(AVFormatContext *s,
         chunk_type = AV_RB32(&preamble[0]);
         chunk_size = AV_RB32(&preamble[4]);
 
-        if(chunk_size > filesize){
+        if(filesize>=0 && chunk_size > filesize){
             av_log(s, AV_LOG_ERROR, "Chunk with size %d truncated\n", chunk_size);
             chunk_size= filesize;
         }



More information about the ffmpeg-cvslog mailing list