From 290be34a745f502de052e127e9aa206209e3f55c Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 5 Nov 2013 12:37:52 +0000 Subject: [PATCH] avcodec/brender_pix: stop calling av_image_check_size() twice Signed-off-by: Paul B Mahol --- libavcodec/brender_pix.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/brender_pix.c b/libavcodec/brender_pix.c index 1089a389d0..23a46cc0ed 100644 --- a/libavcodec/brender_pix.c +++ b/libavcodec/brender_pix.c @@ -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;