diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-06 17:04:31 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-14 13:36:19 +0200 |
commit | a1292895cb3f7cfe0c68b9201f7e22144984f6f4 (patch) | |
tree | 384a0cb680bd31fa14aea02282ee522ad4bdf427 /tools/target_bsf_fuzzer.c | |
parent | 989febfbd0c986e9e3e0f269a6b22778bf79147b (diff) | |
download | ffmpeg-a1292895cb3f7cfe0c68b9201f7e22144984f6f4.tar.gz |
configure: Remove null_bsf dependency
Unneeded since c96904f525afcaba756a5ce8511a3ee1aa9fd2d7
(a bsf-list with zero bsfs is used since that commit).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tools/target_bsf_fuzzer.c')
-rw-r--r-- | tools/target_bsf_fuzzer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/target_bsf_fuzzer.c b/tools/target_bsf_fuzzer.c index 56f011ad21..73bf4bdf0e 100644 --- a/tools/target_bsf_fuzzer.c +++ b/tools/target_bsf_fuzzer.c @@ -54,16 +54,14 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { #define BSF_SYMBOL(BSF) BSF_SYMBOL0(BSF) extern AVBitStreamFilter BSF_SYMBOL(FFMPEG_BSF); f = &BSF_SYMBOL(FFMPEG_BSF); -#else - extern AVBitStreamFilter ff_null_bsf; - f = &ff_null_bsf; #endif av_log_set_level(AV_LOG_PANIC); } - res = av_bsf_alloc(f, &bsf); + res = f ? av_bsf_alloc(f, &bsf) : av_bsf_get_null_filter(&bsf); if (res < 0) error("Failed memory allocation"); + f = bsf->filter; if (size > 1024) { GetByteContext gbc; |