Fixes: out of array access Fixes: 15919/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VQA_fuzzer-5657368257363968
Unified · Split
| @@ -147,7 +147,7 @@ static av_cold int vqa_decode_init(AVCodecContext *avctx) · 146 unmodified lines | ||
| 147 | 147 | } |
| 148 | 148 | s->width = AV_RL16(&s->avctx->extradata[6]); |
| 149 | 149 | s->height = AV_RL16(&s->avctx->extradata[8]); |
| 150 | − if ((ret = av_image_check_size(s->width, s->height, 0, avctx)) < 0) { | |
| 150 | + if ((ret = ff_set_dimensions(avctx, s->width, s->height)) < 0) { | |
| 151 | 151 | s->width= s->height= 0; |
| 152 | 152 | return ret; |
| 153 | 153 | } |