[FFmpeg-cvslog] tools/target_dec_fuzzer: Support setting AV_CODEC_FLAG2_FAST
Michael Niedermayer
git at videolan.org
Tue Dec 3 18:49:16 EET 2019
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Nov 30 00:59:21 2019 +0100| [5ac8675cb1a4ecb068db9a938e2b371b8792c3f9] | committer: Michael Niedermayer
tools/target_dec_fuzzer: Support setting AV_CODEC_FLAG2_FAST
This should improve coverage
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5ac8675cb1a4ecb068db9a938e2b371b8792c3f9
---
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);
More information about the ffmpeg-cvslog
mailing list