Commit d57e95cb authored by Anton Khirnov's avatar Anton Khirnov

cdxl: stop using deprecated avcodec_set_dimensions

parent f176e11c
...@@ -237,10 +237,8 @@ static int cdxl_decode_frame(AVCodecContext *avctx, void *data, ...@@ -237,10 +237,8 @@ static int cdxl_decode_frame(AVCodecContext *avctx, void *data,
return AVERROR_PATCHWELCOME; return AVERROR_PATCHWELCOME;
} }
if ((ret = av_image_check_size(w, h, 0, avctx)) < 0) if ((ret = ff_set_dimensions(avctx, w, h)) < 0)
return ret; return ret;
if (w != avctx->width || h != avctx->height)
avcodec_set_dimensions(avctx, w, h);
aligned_width = FFALIGN(c->avctx->width, 16); aligned_width = FFALIGN(c->avctx->width, 16);
c->padded_bits = aligned_width - c->avctx->width; c->padded_bits = aligned_width - c->avctx->width;
......
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