]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/westwood.c
dv: fix avpriv_dv_codec_profile with lowres > 0
[ffmpeg] / libavformat / westwood.c
index c46c3ba10e024c8b620391162fb93ef7a001a09c..4cbd5be39671925dcbceec6a814ad58e895199d7 100644 (file)
@@ -320,15 +320,9 @@ static int wsvqa_read_packet(AVFormatContext *s,
     int skip_byte;
 
     while (avio_read(pb, preamble, VQA_PREAMBLE_SIZE) == VQA_PREAMBLE_SIZE) {
-        int64_t filesize= avio_size(s->pb);
         chunk_type = AV_RB32(&preamble[0]);
         chunk_size = AV_RB32(&preamble[4]);
 
-        if(chunk_size > filesize){
-            av_log(s, AV_LOG_ERROR, "Chunk with size %d truncated\n", chunk_size);
-            chunk_size= filesize;
-        }
-
         skip_byte = chunk_size & 0x01;
 
         if ((chunk_type == SND2_TAG || chunk_type == SND1_TAG) && wsvqa->audio_channels == 0) {