Mercurial > libavcodec.hg
diff vp8.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 | 4787027b74b1 |
children | a0c84084fa2f |
line wrap: on
line diff
--- a/vp8.c Fri Aug 06 09:36:45 2010 +0000 +++ b/vp8.c Fri Aug 06 09:37:04 2010 +0000 @@ -22,6 +22,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavcore/imgutils.h" #include "avcodec.h" #include "vp56.h" #include "vp8data.h" @@ -224,7 +225,7 @@ static int update_dimensions(VP8Context *s, int width, int height) { - if (avcodec_check_dimensions(s->avctx, width, height)) + if (av_check_image_size(width, height, 0, s->avctx)) return AVERROR_INVALIDDATA; vp8_decode_flush(s->avctx);