mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/brender_pix: stop using deprecated avcodec_set_dimensions
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
7722ae35eb
commit
1a244c22ea
@ -131,8 +131,8 @@ static int brpix_decode_frame(AVCodecContext *avctx,
|
|||||||
if (av_image_check_size(hdr.width, hdr.height, 0, avctx) < 0)
|
if (av_image_check_size(hdr.width, hdr.height, 0, avctx) < 0)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
if (hdr.width != avctx->width || hdr.height != avctx->height)
|
if ((ret = ff_set_dimensions(avctx, hdr.width, hdr.height)) < 0)
|
||||||
avcodec_set_dimensions(avctx, hdr.width, hdr.height);
|
return ret;
|
||||||
|
|
||||||
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
|
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user