diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2020-10-16 11:36:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-10-16 14:56:24 +0200 |
commit | af701196ec04a2ad1032340ef8b04ed9890ff32c (patch) | |
tree | c34df69381e5a90fb7223b07e5de17e34d4a10b0 /tools | |
parent | 2b5e18a953d10638c5305480326047691ee40093 (diff) | |
download | ffmpeg-af701196ec04a2ad1032340ef8b04ed9890ff32c.tar.gz |
tools/target_dem_fuzzer: Set format independent of c
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/target_dem_fuzzer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/target_dem_fuzzer.c b/tools/target_dem_fuzzer.c index 79d572a6dc..a4d69bb230 100644 --- a/tools/target_dem_fuzzer.c +++ b/tools/target_dem_fuzzer.c @@ -104,14 +104,14 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { int seekable = 0; int ret; AVInputFormat *fmt = NULL; - - if (!c) { #ifdef FFMPEG_DEMUXER #define DEMUXER_SYMBOL0(DEMUXER) ff_##DEMUXER##_demuxer #define DEMUXER_SYMBOL(DEMUXER) DEMUXER_SYMBOL0(DEMUXER) - extern AVInputFormat DEMUXER_SYMBOL(FFMPEG_DEMUXER); - fmt = &DEMUXER_SYMBOL(FFMPEG_DEMUXER); + extern AVInputFormat DEMUXER_SYMBOL(FFMPEG_DEMUXER); + fmt = &DEMUXER_SYMBOL(FFMPEG_DEMUXER); #endif + + if (!c) { av_register_all(); avcodec_register_all(); av_log_set_level(AV_LOG_PANIC); |