aboutsummaryrefslogtreecommitdiffstats
path: root/tools/target_enc_fuzzer.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-05-05 03:08:48 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-05-09 16:17:38 +0200
commitc2918eb88ecb93764809bd158cddbb8d73f89db8 (patch)
tree346134b14f457b9c3892782e2a57ac9e253e036e /tools/target_enc_fuzzer.c
parente4da96c6b2051fcd8e1ee9c69f881d2dd6cd1f67 (diff)
downloadffmpeg-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.c3
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;