]> git.sesse.net Git - ffmpeg/commitdiff
tools/target_dec_fuzzer: Adjust threshold for VP9
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Oct 2019 21:40:22 +0000 (23:40 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Nov 2019 21:56:32 +0000 (22:56 +0100)
The threshold is chosen so that the worse frames would together not take
excessive time.
A better solution is welcome!

Fixes: Timeout (308sec ->102ms)
Fixes: 18314/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP9_fuzzer-5701689176227840
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 1302a4458ad38cbf48af5061615e3c798725c398..1c4fb11b8abdf2504d9df2b97815ef0b3ebc8d1b 100644 (file)
@@ -163,6 +163,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     case AV_CODEC_ID_TGV:         maxpixels /= 32;    break;
     case AV_CODEC_ID_TRUEMOTION2: maxpixels /= 1024; break;
     case AV_CODEC_ID_VP7:         maxpixels /= 256;  break;
+    case AV_CODEC_ID_VP9:         maxpixels /= 4096; break;
     }