diff options
author | James Almer <jamrial@gmail.com> | 2022-07-19 10:44:21 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-07-26 09:15:16 -0300 |
commit | ae4c364e924e0b16885560d44187f26f59a728f8 (patch) | |
tree | 579ff1ab6000eaf67814fad6fac0dbdf9250ad10 /tools | |
parent | 247d513beb24a55bf3519bd52fa72a9f30f693a5 (diff) | |
download | ffmpeg-ae4c364e924e0b16885560d44187f26f59a728f8.tar.gz |
tools/target_dec_fuzzer: set some avctx->export_side_data flags
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/target_dec_fuzzer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index 49baa2da6c..1746b58075 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -338,7 +338,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { if ((flags & 0x10) && c->p.id != AV_CODEC_ID_H264) ctx->flags2 |= AV_CODEC_FLAG2_FAST; if (flags & 0x80) - ctx->flags2 |= AV_CODEC_FLAG2_EXPORT_MVS; + ctx->export_side_data |= AV_CODEC_EXPORT_DATA_MVS; if (flags & 0x40) av_force_cpu_flags(0); @@ -406,6 +406,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { ctx->debug |= FF_DEBUG_QP; if (flags64 &4) ctx->debug |= FF_DEBUG_MB_TYPE; + if (flags64 & 8) + ctx->export_side_data |= AV_CODEC_EXPORT_DATA_VIDEO_ENC_PARAMS; if (extradata_size < size) { ctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); |