[FFmpeg-devel] [PATCH 6/6] tools/target_dec_fuzzer: Support setting AV_CODEC_FLAG2_FAST
Michael Niedermayer
michael at niedermayer.cc
Sat Nov 30 01:59:21 EET 2019
This should improve coverage
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
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 9dbe025db9..dcf47b0f4d 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -199,6 +199,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
if (flags & 8)
ctx->err_recognition |= AV_EF_EXPLODE;
}
+ if (flags & 0x10)
+ ctx->flags2 |= AV_CODEC_FLAG2_FAST;
extradata_size = bytestream2_get_le32(&gbc);
--
2.23.0
More information about the ffmpeg-devel
mailing list