Commit 290be34a authored by Paul B Mahol's avatar Paul B Mahol

avcodec/brender_pix: stop calling av_image_check_size() twice

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 6e094f70
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment