[FFmpeg-cvslog] avcodec/dvbsubdec: Use av_image_check_size2()

Michael Niedermayer git at videolan.org
Sat Jun 10 01:49:01 EEST 2017


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Jun  9 23:04:30 2017 +0200| [4bcde26172bab43843e2f869025931217b3c5773] | committer: Michael Niedermayer

avcodec/dvbsubdec: Use av_image_check_size2()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4bcde26172bab43843e2f869025931217b3c5773
---

 libavcodec/dvbsubdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list