mirror of https://git.ffmpeg.org/ffmpeg.git
tools/target_enc_fuzzer: replace assert by clean exit
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
e4da96c6b2
commit
c2918eb88e
|
@ -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…
Reference in New Issue