Browse Source

westwooddemux: dont require avio_size() functionality.

Found by reimar

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.10
Michael Niedermayer 14 years ago
parent
commit
e2a16e82b1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/westwood.c

+ 1
- 1
libavformat/westwood.c View File

@@ -324,7 +324,7 @@ static int wsvqa_read_packet(AVFormatContext *s,
chunk_type = AV_RB32(&preamble[0]); chunk_type = AV_RB32(&preamble[0]);
chunk_size = AV_RB32(&preamble[4]); 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); av_log(s, AV_LOG_ERROR, "Chunk with size %d truncated\n", chunk_size);
chunk_size= filesize; chunk_size= filesize;
} }


Loading…
Cancel
Save