From 6ce9b4310cf1eba1a356191f30460a97e6653b91 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 6 Aug 2010 09:37:04 +0000 Subject: Remove use of the deprecated function avcodec_check_dimensions(), use av_check_image_size() instead. Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/nuv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/nuv.c') diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c index 791f450913..e52ea88b18 100644 --- a/libavcodec/nuv.c +++ b/libavcodec/nuv.c @@ -23,6 +23,7 @@ #include "libavutil/bswap.h" #include "libavutil/lzo.h" +#include "libavcore/imgutils.h" #include "avcodec.h" #include "dsputil.h" #include "rtjpeg.h" @@ -111,7 +112,7 @@ static int codec_reinit(AVCodecContext *avctx, int width, int height, int qualit if (quality >= 0) get_quant_quality(c, quality); if (width != c->width || height != c->height) { - if (avcodec_check_dimensions(avctx, height, width) < 0) + if (av_check_image_size(height, width, 0, avctx) < 0) return 0; avctx->width = c->width = width; avctx->height = c->height = height; -- cgit v1.2.3