提交 8a1a9588 编写于 作者: M Michael Niedermayer

avcodec/vqavideo: Limit resolution

Fixes: Timeout (288sec -> 1ms)
Fixes: 16353/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VQA_fuzzer-5633402606190592

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpegSigned-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 9d3ddef5
......@@ -637,6 +637,11 @@ static av_cold int vqa_decode_end(AVCodecContext *avctx)
return 0;
}
static const AVCodecDefault vqa_defaults[] = {
{ "max_pixels", "320*240" },
{ NULL },
};
AVCodec ff_vqa_decoder = {
.name = "vqavideo",
.long_name = NULL_IF_CONFIG_SMALL("Westwood Studios VQA (Vector Quantized Animation) video"),
......@@ -647,4 +652,5 @@ AVCodec ff_vqa_decoder = {
.close = vqa_decode_end,
.decode = vqa_decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
.defaults = vqa_defaults,
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册