tools/target_enc_fuzzer: replace assert by clean exit

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
release/7.1
Michael Niedermayer 8 months ago
parent e4da96c6b2
commit c2918eb88e
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 3
      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;

Loading…
Cancel
Save