tools/target_enc_fuzzer: replace assert by clean exit

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent e4da96c6
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment