Use new imgutils.h API names, fix deprecation warnings.
Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -342,7 +342,7 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
|
||||
sps->mb_width = get_ue_golomb(&s->gb) + 1;
|
||||
sps->mb_height= get_ue_golomb(&s->gb) + 1;
|
||||
if((unsigned)sps->mb_width >= INT_MAX/16 || (unsigned)sps->mb_height >= INT_MAX/16 ||
|
||||
av_check_image_size(16*sps->mb_width, 16*sps->mb_height, 0, h->s.avctx)){
|
||||
av_image_check_size(16*sps->mb_width, 16*sps->mb_height, 0, h->s.avctx)){
|
||||
av_log(h->s.avctx, AV_LOG_ERROR, "mb_width/height overflow\n");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user