westwooddemux: dont require avio_size() functionality.
Found by reimar Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9994643fdd
commit
e2a16e82b1
@ -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…
Reference in New Issue
Block a user