tools/target_dec_fuzzer: Adjust threshold for zerocodec
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 22 Feb 2020 23:08:19 +0000 (00:08 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 12 Apr 2020 14:36:47 +0000 (16:36 +0200)
Fixes: Timeout (147sec -> 1sec)
Fixes: 20764/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ZEROCODEC_fuzzer-5068274603917312

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tools/target_dec_fuzzer.c

index 8dc5f0d..a89ea78 100644 (file)
@@ -168,6 +168,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     case AV_CODEC_ID_TRUEMOTION2: maxpixels  /= 1024;  break;
     case AV_CODEC_ID_VP7:         maxpixels  /= 256;   break;
     case AV_CODEC_ID_VP9:         maxpixels  /= 4096;  break;
+    case AV_CODEC_ID_ZEROCODEC:   maxpixels  /= 128;   break;
     }