mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 00:51:37 +00:00
tools/target_enc_fuzzer: A64MULTI5 encoder is very slow, check and adjust threshold
Fixes: Timeout Fixes: 68999/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_A64MULTI5_fuzzer-5078418784845824 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
0142322090
commit
47a26b17d8
@ -96,6 +96,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
maxpixels = maxpixels_per_frame * maxiteration;
|
||||
switch (c->p.id) {
|
||||
case AV_CODEC_ID_A64_MULTI: maxpixels /= 65536; break;
|
||||
case AV_CODEC_ID_A64_MULTI5: maxpixels /= 65536; break;
|
||||
}
|
||||
|
||||
maxpixels_per_frame = FFMIN(maxpixels_per_frame , maxpixels);
|
||||
|
Loading…
Reference in New Issue
Block a user