Commit 0f21d8b1 authored by Anton Khirnov's avatar Anton Khirnov

pictordec: stop using deprecated avcodec_set_dimensions

parent 41ad353d
...@@ -141,9 +141,9 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -141,9 +141,9 @@ static int decode_frame(AVCodecContext *avctx,
avctx->pix_fmt = AV_PIX_FMT_PAL8; avctx->pix_fmt = AV_PIX_FMT_PAL8;
if (s->width != avctx->width && s->height != avctx->height) { if (s->width != avctx->width && s->height != avctx->height) {
if (av_image_check_size(s->width, s->height, 0, avctx) < 0) ret = ff_set_dimensions(avctx, s->width, s->height);
return -1; if (ret < 0)
avcodec_set_dimensions(avctx, s->width, s->height); return ret;
} }
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) { if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
......
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