avcodec/svq1dec: Remove duplicate buf_size check
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 15 May 2015 18:06:24 +0000 (20:06 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 15 May 2015 18:06:24 +0000 (20:06 +0200)
Fixes CID1297573

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

index 6394647..21d4acf 100644 (file)
@@ -650,9 +650,6 @@ static int svq1_decode_frame(AVCodecContext *avctx, void *data,
 
         src = (uint32_t *)(s->pkt_swapped + 4);
 
-        if (buf_size < 36)
-            return AVERROR_INVALIDDATA;
-
         for (i = 0; i < 4; i++)
             src[i] = ((src[i] << 16) | (src[i] >> 16)) ^ src[7 - i];
     }