[FFmpeg-cvslog] tools/target_dec_fuzzer: set AV_EF_CRCCHECK in avctx->err_recognition

James Almer git at videolan.org
Tue Jul 26 17:05:02 EEST 2022


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Jul 19 10:44:22 2022 -0300| [5a27aa7dc706da8c8b31c6c16931fa90c0b77d1d] | committer: James Almer

tools/target_dec_fuzzer: set AV_EF_CRCCHECK in avctx->err_recognition

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5a27aa7dc706da8c8b31c6c16931fa90c0b77d1d
---

 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 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);



More information about the ffmpeg-cvslog mailing list