From 0a9e94bba8f8a40156438a43e4fe0e9ae36236cb Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 27 Oct 2013 10:02:26 +0100 Subject: [PATCH] webp: stop using deprecated avcodec_set_dimensions --- libavcodec/webp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/webp.c b/libavcodec/webp.c index 8ad24f8fb7..cf431fee2c 100644 --- a/libavcodec/webp.c +++ b/libavcodec/webp.c @@ -1085,10 +1085,10 @@ static int vp8_lossless_decode_frame(AVCodecContext *avctx, AVFrame *p, s->width, w); } s->height = h; - ret = av_image_check_size(s->width, s->height, 0, avctx); + + ret = ff_set_dimensions(avctx, s->width, s->height); if (ret < 0) return ret; - avcodec_set_dimensions(avctx, s->width, s->height); s->has_alpha = get_bits1(&s->gb);