aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dirac.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/dirac.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/dirac.c')
-rw-r--r--libavcodec/dirac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/dirac.c b/libavcodec/dirac.c
index c65a51f964..3eddc6708f 100644
--- a/libavcodec/dirac.c
+++ b/libavcodec/dirac.c
@@ -25,6 +25,7 @@
* @author Marco Gerards <marco@gnu.org>
*/
+#include "libavcore/imgutils.h"
#include "dirac.h"
#include "avcodec.h"
#include "golomb.h"
@@ -268,7 +269,7 @@ int ff_dirac_parse_sequence_header(AVCodecContext *avctx, GetBitContext *gb,
if (parse_source_parameters(avctx, gb, source))
return -1;
- if (avcodec_check_dimensions(avctx, source->width, source->height))
+ if (av_check_image_size(source->width, source->height, 0, avctx))
return -1;
avcodec_set_dimensions(avctx, source->width, source->height);