summaryrefslogtreecommitdiff
path: root/libavcodec/iff.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-06 09:37:04 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-06 09:37:04 +0000
commit6ce9b4310cf1eba1a356191f30460a97e6653b91 (patch)
tree4211e63439fb2ee8a0f063fe62b6ef1a4a0ad393 /libavcodec/iff.c
parent899a507fa690e533f62e95a0c5d1caf487cf72ce (diff)
downloadffmpeg-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/iff.c')
-rw-r--r--libavcodec/iff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/iff.c b/libavcodec/iff.c
index 2992cb43ad..7ddcbc6c92 100644
--- a/libavcodec/iff.c
+++ b/libavcodec/iff.c
@@ -25,6 +25,7 @@
* IFF PBM/ILBM bitmap decoder
*/
+#include "libavcore/imgutils.h"
#include "bytestream.h"
#include "avcodec.h"
#include "get_bits.h"
@@ -160,7 +161,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
return AVERROR_INVALIDDATA;
}
- if ((err = avcodec_check_dimensions(avctx, avctx->width, avctx->height)))
+ if ((err = av_check_image_size(avctx->width, avctx->height, 0, avctx)))
return err;
s->planesize = FFALIGN(avctx->width, 16) >> 3; // Align plane size in bits to word-boundary
s->planebuf = av_malloc(s->planesize + FF_INPUT_BUFFER_PADDING_SIZE);