Commit 4bcde261 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/dvbsubdec: Use av_image_check_size2()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 93db5e3f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment