Mercurial > libavcodec.hg
diff eatgv.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 | 7dd2a45249a9 |
children | ffb3668ff7af |
line wrap: on
line diff
--- a/eatgv.c Fri Aug 06 09:36:45 2010 +0000 +++ b/eatgv.c Fri Aug 06 09:37:04 2010 +0000 @@ -32,6 +32,7 @@ #define ALT_BITSTREAM_READER_LE #include "get_bits.h" #include "libavutil/lzo.h" +#include "libavcore/imgutils.h" #define EA_PREAMBLE_SIZE 8 #define kVGT_TAG MKTAG('k', 'V', 'G', 'T') @@ -275,7 +276,7 @@ } } - if (avcodec_check_dimensions(avctx, s->width, s->height)) + if (av_check_image_size(s->width, s->height, 0, avctx)) return -1; /* shuffle */