avcodec/brender_pix: stop calling av_image_check_size() twice
authorPaul B Mahol <onemda@gmail.com>
Tue, 5 Nov 2013 12:37:52 +0000 (12:37 +0000)
committerPaul B Mahol <onemda@gmail.com>
Tue, 5 Nov 2013 12:37:52 +0000 (12:37 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/brender_pix.c

index 1089a38..23a46cc 100644 (file)
@@ -128,9 +128,6 @@ static int brpix_decode_frame(AVCodecContext *avctx,
         return AVERROR_PATCHWELCOME;
     }
 
-    if (av_image_check_size(hdr.width, hdr.height, 0, avctx) < 0)
-        return AVERROR_INVALIDDATA;
-
     if ((ret = ff_set_dimensions(avctx, hdr.width, hdr.height)) < 0)
         return ret;