tools/target_dec_fuzzer: adjust pixel threshold for TRUEMOTION2, as it allows coding...
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Aug 2019 20:26:14 +0000 (22:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 31 Aug 2019 16:34:05 +0000 (18:34 +0200)
Fixes: Timeout (137sec -> 6sec)
Fixes: 16090/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5674245178261504

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 901dbca385fab6a764ab1289d60ffcd5732a480d..3a19efd031923f03d366dda07e75df1929fbfea2 100644 (file)
@@ -139,6 +139,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     case AV_CODEC_ID_HNM4_VIDEO:maxpixels /= 128; break;
         // Cliping in C, generally slow even with small input
     case AV_CODEC_ID_INDEO4:    maxpixels /= 128; break;
     case AV_CODEC_ID_HNM4_VIDEO:maxpixels /= 128; break;
         // Cliping in C, generally slow even with small input
     case AV_CODEC_ID_INDEO4:    maxpixels /= 128; break;
+    case AV_CODEC_ID_TRUEMOTION2: maxpixels /= 1024; break;
     }
 
 
     }