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 | 0a9e94bba8f8a40156438a43e4fe0e9ae36236cb (patch) | |
tree | f12fe716345233e6b76ae12cadbe1a3eb8bf0845 | |
parent | 757d5e8ef98ba2ab0dd0e85a46290c4f4a7e82be (diff) | |
download | ffmpeg-0a9e94bba8f8a40156438a43e4fe0e9ae36236cb.tar.gz |
webp: stop using deprecated avcodec_set_dimensions
-rw-r--r-- | libavcodec/webp.c | 4 |
1 files 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); |