]> git.sesse.net Git - ffmpeg/commitdiff
tools/target_dec_fuzzer: Also Fuzz with CPU optimizations disabled
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 29 Dec 2019 16:13:21 +0000 (17:13 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 21 Jan 2020 20:38:38 +0000 (21:38 +0100)
This should improve coverage of *_c()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tools/target_dec_fuzzer.c

index 281decae94ff61685ca77ab0e28bb2679c10a2be..9f342ebde981ee3d142de336f0a0a5d179d58462 100644 (file)
@@ -204,6 +204,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
         if (flags & 0x10)
             ctx->flags2 |= AV_CODEC_FLAG2_FAST;
 
+        if (flags & 0x40)
+            av_force_cpu_flags(0);
 
         extradata_size = bytestream2_get_le32(&gbc);