1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

tools/target_enc_fuzzer: replace assert by clean exit

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-05-05 03:08:48 +02:00
parent e4da96c6b2
commit c2918eb88e
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -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;