[FFmpeg-devel] [PATCH 2/3] tools/target_dec_fuzzer: set AV_EF_CRCCHECK in avctx->err_recognition
James Almer
jamrial at gmail.com
Tue Jul 19 16:44:22 EEST 2022
Signed-off-by: James Almer <jamrial at gmail.com>
---
tools/target_dec_fuzzer.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index 7d71dd39e3..06c38a96c1 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -406,6 +406,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);
--
2.37.1
More information about the ffmpeg-devel
mailing list