[FFmpeg-devel,2/3] tools/target_dec_fuzzer: Adjust maxpixels for indeo4

Submitted by Michael Niedermayer on Aug. 14, 2019, 7 a.m.

Details

Message ID 20190814070008.8677-2-michael@niedermayer.cc
State Accepted
Commit ba823394f65a5179cc338fc72e37ee7f48c5dac0
Headers show

Commit Message

Michael Niedermayer Aug. 14, 2019, 7 a.m.
Fixes: Timeout (131sec -> 4sec)
Fixes: 15581/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_INDEO4_fuzzer-5651105515569152

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 | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index b3a12f8a63..5f288dc9f9 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -176,6 +176,8 @@  int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     case AV_CODEC_ID_GDV:       maxpixels /= 512; break;
         // Postprocessing in C
     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;
     }