diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-05 03:08:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-09 16:17:38 +0200 |
commit | c2918eb88ecb93764809bd158cddbb8d73f89db8 (patch) | |
tree | 346134b14f457b9c3892782e2a57ac9e253e036e /tools/target_enc_fuzzer.c | |
parent | e4da96c6b2051fcd8e1ee9c69f881d2dd6cd1f67 (diff) | |
download | ffmpeg-c2918eb88ecb93764809bd158cddbb8d73f89db8.tar.gz |
tools/target_enc_fuzzer: replace assert by clean exit
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tools/target_enc_fuzzer.c')
-rw-r--r-- | tools/target_enc_fuzzer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/target_enc_fuzzer.c b/tools/target_enc_fuzzer.c index 4357d37636..1749f6905b 100644 --- a/tools/target_enc_fuzzer.c +++ b/tools/target_enc_fuzzer.c @@ -89,7 +89,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { av_log_set_level(AV_LOG_PANIC); } - av_assert0(c->p.type == AVMEDIA_TYPE_VIDEO); + if (c->p.type != AVMEDIA_TYPE_VIDEO) + return 0; maxpixels = maxpixels_per_frame * maxiteration; |