Mercurial > libavcodec.hg
diff nuv.c @ 12372:914f484bb476 libavcodec
Remove use of the deprecated function avcodec_check_dimensions(), use
av_check_image_size() instead.
author | stefano |
---|---|
date | Fri, 06 Aug 2010 09:37:04 +0000 |
parents | 8a4984c5cacc |
children | ffb3668ff7af |
line wrap: on
line diff
--- a/nuv.c Fri Aug 06 09:36:45 2010 +0000 +++ b/nuv.c Fri Aug 06 09:37:04 2010 +0000 @@ -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 @@ 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;