diff options
author | James Almer <jamrial@gmail.com> | 2022-07-19 10:44:22 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-07-26 09:15:16 -0300 |
commit | 5a27aa7dc706da8c8b31c6c16931fa90c0b77d1d (patch) | |
tree | 4132a87607b62cede571ed935740af4eb28fc60b /tools | |
parent | ae4c364e924e0b16885560d44187f26f59a728f8 (diff) | |
download | ffmpeg-5a27aa7dc706da8c8b31c6c16931fa90c0b77d1d.tar.gz |
tools/target_dec_fuzzer: set AV_EF_CRCCHECK in avctx->err_recognition
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/target_dec_fuzzer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index 1746b58075..93d5ab0a9f 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -408,6 +408,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { ctx->debug |= FF_DEBUG_MB_TYPE; if (flags64 & 8) ctx->export_side_data |= AV_CODEC_EXPORT_DATA_VIDEO_ENC_PARAMS; + if (flags64 & 0x10) + ctx->err_recognition |= AV_EF_CRCCHECK; if (extradata_size < size) { ctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); |