summaryrefslogtreecommitdiff
path: root/libavcodec/dvbsubdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-06-09 23:04:30 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-06-10 00:48:07 +0200
commit4bcde26172bab43843e2f869025931217b3c5773 (patch)
tree71c4860466c65d727190d51d8ba8b704ff9234f6 /libavcodec/dvbsubdec.c
parent93db5e3fc41ac0242acab86c3e4ce3a3dfb80075 (diff)
avcodec/dvbsubdec: Use av_image_check_size2()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/dvbsubdec.c')
-rw-r--r--libavcodec/dvbsubdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index b7ed0dc783..bc16eb735b 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -1157,7 +1157,7 @@ static int dvbsub_parse_region_segment(AVCodecContext *avctx,
region->height = AV_RB16(buf);
buf += 2;
- ret = av_image_check_size(region->width, region->height, 0, avctx);
+ ret = av_image_check_size2(region->width, region->height, avctx->max_pixels, AV_PIX_FMT_PAL8, 0, avctx);
if (ret < 0) {
region->width= region->height= 0;
return ret;