Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-10-27 13:02:26 +0400
committerAnton Khirnov <anton@khirnov.net>2013-10-31 23:14:16 +0400
commit0f21d8b1b40848973558c737aebe800c46e93a3d (patch)
treee5cc26edf9eff46690c3504b004ed2693b8bf55a /libavcodec/pictordec.c
parent41ad353dcffc02803c5ccf98307f0c468ee0313a (diff)
pictordec: stop using deprecated avcodec_set_dimensions
Diffstat (limited to 'libavcodec/pictordec.c')
-rw-r--r--libavcodec/pictordec.c6
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) {