avformat/idcin: Remove redundant chunk size check
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 12 May 2015 16:40:16 +0000 (18:40 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 12 May 2015 16:40:16 +0000 (18:40 +0200)
Fixes CID1138438

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/idcin.c

index 4e455bf..61a2724 100644 (file)
@@ -307,8 +307,6 @@ static int idcin_read_packet(AVFormatContext *s,
         }
         /* skip the number of decoded bytes (always equal to width * height) */
         avio_skip(pb, 4);
-        if (chunk_size < 4)
-            return AVERROR_INVALIDDATA;
         chunk_size -= 4;
         ret= av_get_packet(pb, pkt, chunk_size);
         if (ret < 0)