summaryrefslogtreecommitdiff
path: root/libavcodec/gifdec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-10-27 10:02:26 +0100
committerAnton Khirnov <anton@khirnov.net>2013-10-31 20:14:15 +0100
commit8255535c5f2da4e1363fae1f942b9ed28ce7552b (patch)
tree201ea43c5922180c5c6d399e8186f21e98856a26 /libavcodec/gifdec.c
parent58c6239e852f525fc0afa3ab689e860ea3943913 (diff)
gifdec: stop using deprecated avcodec_set_dimensions
Diffstat (limited to 'libavcodec/gifdec.c')
-rw-r--r--libavcodec/gifdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index a233797717..136d1127d2 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -292,9 +292,9 @@ static int gif_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
return ret;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
- if ((ret = av_image_check_size(s->screen_width, s->screen_height, 0, avctx)) < 0)
+
+ if ((ret = ff_set_dimensions(avctx, s->screen_width, s->screen_height)) < 0)
return ret;
- avcodec_set_dimensions(avctx, s->screen_width, s->screen_height);
if ((ret = ff_get_buffer(avctx, picture, 0)) < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");