diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-10-27 10:02:26 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-10-31 20:14:16 +0100 |
commit | 0f21d8b1b40848973558c737aebe800c46e93a3d (patch) | |
tree | e5cc26edf9eff46690c3504b004ed2693b8bf55a /libavcodec/pictordec.c | |
parent | 41ad353dcffc02803c5ccf98307f0c468ee0313a (diff) | |
download | ffmpeg-0f21d8b1b40848973558c737aebe800c46e93a3d.tar.gz |
pictordec: stop using deprecated avcodec_set_dimensions
Diffstat (limited to 'libavcodec/pictordec.c')
-rw-r--r-- | libavcodec/pictordec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c index 2d72977897..33c4545483 100644 --- a/libavcodec/pictordec.c +++ b/libavcodec/pictordec.c @@ -141,9 +141,9 @@ static int decode_frame(AVCodecContext *avctx, avctx->pix_fmt = AV_PIX_FMT_PAL8; if (s->width != avctx->width && s->height != avctx->height) { - if (av_image_check_size(s->width, s->height, 0, avctx) < 0) - return -1; - avcodec_set_dimensions(avctx, s->width, s->height); + ret = ff_set_dimensions(avctx, s->width, s->height); + if (ret < 0) + return ret; } if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) { |