Commit e2a16e82 authored by Michael Niedermayer's avatar Michael Niedermayer

westwooddemux: dont require avio_size() functionality.

Found by reimar
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9994643f
...@@ -324,7 +324,7 @@ static int wsvqa_read_packet(AVFormatContext *s, ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment