Skip to content

Commit 02f909d

Browse files
committed
avcodec/vqavideo: Set video size
Fixes: out of array access Fixes: 15919/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VQA_fuzzer-5657368257363968 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
1 parent 172a43c commit 02f909d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libavcodec/vqavideo.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static av_cold int vqa_decode_init(AVCodecContext *avctx)
147147
}
148148
s->width = AV_RL16(&s->avctx->extradata[6]);
149149
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) {
151151
s->width= s->height= 0;
152152
return ret;
153153
}

0 commit comments

Comments
 (0)