Mercurial > libavcodec.hg
diff flvdec.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 | c35d7bc64882 |
children | ffb3668ff7af |
line wrap: on
line diff
--- a/flvdec.c Fri Aug 06 09:36:45 2010 +0000 +++ b/flvdec.c Fri Aug 06 09:37:04 2010 +0000 @@ -20,6 +20,7 @@ #include "mpegvideo.h" #include "h263.h" #include "flv.h" +#include "libavcore/imgutils.h" void ff_flv2_decode_ac_esc(GetBitContext *gb, int *level, int *run, int *last){ int is11 = get_bits1(gb); @@ -82,7 +83,7 @@ width = height = 0; break; } - if(avcodec_check_dimensions(s->avctx, width, height)) + if(av_check_image_size(width, height, 0, s->avctx)) return -1; s->width = width; s->height = height;