mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
avcodec/brender_pix: stop calling av_image_check_size() twice
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
6e094f7026
commit
290be34a74
@ -128,9 +128,6 @@ static int brpix_decode_frame(AVCodecContext *avctx,
|
|||||||
return AVERROR_PATCHWELCOME;
|
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)
|
if ((ret = ff_set_dimensions(avctx, hdr.width, hdr.height)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user