1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

westwooddemux: dont require avio_size() functionality.

Found by reimar

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-12-16 01:32:28 +01:00
parent 9994643fdd
commit e2a16e82b1

View File

@ -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;
}