summaryrefslogtreecommitdiff
path: root/libavcodec/flvdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/flvdec.c')
-rw-r--r--libavcodec/flvdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/flvdec.c b/libavcodec/flvdec.c
index b21a9e4a34..dd15f2dd70 100644
--- a/libavcodec/flvdec.c
+++ b/libavcodec/flvdec.c
@@ -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 @@ int ff_flv_decode_picture_header(MpegEncContext *s)
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;