tools/target_dec_fuzzer: Support setting AV_CODEC_FLAG2_FAST

This should improve coverage

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2019-11-30 00:59:21 +01:00
parent 3ae87bb3c1
commit 5ac8675cb1
1 changed files with 2 additions and 0 deletions

View File

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