diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-06 09:37:04 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-06 09:37:04 +0000 |
commit | 6ce9b4310cf1eba1a356191f30460a97e6653b91 (patch) | |
tree | 4211e63439fb2ee8a0f063fe62b6ef1a4a0ad393 /libavcodec/vqavideo.c | |
parent | 899a507fa690e533f62e95a0c5d1caf487cf72ce (diff) | |
download | ffmpeg-6ce9b4310cf1eba1a356191f30460a97e6653b91.tar.gz |
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
Diffstat (limited to 'libavcodec/vqavideo.c')
-rw-r--r-- | libavcodec/vqavideo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c index a1698394ef..2d3e0e2369 100644 --- a/libavcodec/vqavideo.c +++ b/libavcodec/vqavideo.c @@ -68,6 +68,7 @@ #include <string.h> #include "libavutil/intreadwrite.h" +#include "libavcore/imgutils.h" #include "avcodec.h" #define PALETTE_COUNT 256 @@ -147,7 +148,7 @@ static av_cold int vqa_decode_init(AVCodecContext *avctx) s->vqa_version = vqa_header[0]; s->width = AV_RL16(&vqa_header[6]); s->height = AV_RL16(&vqa_header[8]); - if(avcodec_check_dimensions(avctx, s->width, s->height)){ + if(av_check_image_size(s->width, s->height, 0, avctx)){ s->width= s->height= 0; return -1; } |