Skip to content

Commit

Permalink
tools/target_enc_fuzzer: A64MULTI5 encoder is very slow, check and ad…
Browse files Browse the repository at this point in the history
…just 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>
  • Loading branch information
michaelni committed Jul 12, 2024
1 parent 032e831 commit 12dab38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/target_enc_fuzzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 12dab38

Please sign in to comment.