1
0
Fork 0

tools/target_dec_fuzzer: force experimental flag for decoders that need it

Otherwise they will not even open.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-03-15 08:56:53 -03:00
parent b47abd5737
commit aca7037e01
1 changed files with 2 additions and 0 deletions

View File

@ -333,6 +333,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
ctx->max_samples = maxsamples_per_frame;
ctx->get_buffer2 = fuzz_get_buffer2;
if (c->p.capabilities & AV_CODEC_CAP_EXPERIMENTAL)
ctx->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
if (size > 1024) {
GetByteContext gbc;