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:15 +0100 |
commit | b870582485f6b4fbfd68447b786f0b5cf993e17f (patch) | |
tree | 400d6148bcbb5472f55c40390cc5a688864ec30c /libavcodec | |
parent | 967cd6fafbf2fdec9cbe011296ad34a70212427e (diff) | |
download | ffmpeg-b870582485f6b4fbfd68447b786f0b5cf993e17f.tar.gz |
libvpxdec: stop using deprecated avcodec_set_dimensions
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libvpxdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c index d19dd6fd12..d65f7f95ce 100644 --- a/libavcodec/libvpxdec.c +++ b/libavcodec/libvpxdec.c @@ -90,9 +90,9 @@ static int vp8_decode(AVCodecContext *avctx, if ((int) img->d_w != avctx->width || (int) img->d_h != avctx->height) { av_log(avctx, AV_LOG_INFO, "dimension change! %dx%d -> %dx%d\n", avctx->width, avctx->height, img->d_w, img->d_h); - if (av_image_check_size(img->d_w, img->d_h, 0, avctx)) - return AVERROR_INVALIDDATA; - avcodec_set_dimensions(avctx, img->d_w, img->d_h); + ret = ff_set_dimensions(avctx, img->d_w, img->d_h); + if (ret < 0) + return ret; } if ((ret = ff_get_buffer(avctx, picture, 0)) < 0) return ret; |