aboutsummaryrefslogtreecommitdiffstats
path: root/tools/target_dec_fuzzer.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-04-21 19:01:57 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-04-25 12:35:28 +0200
commit0d9b0015ba716d015b5c29712d289e87e632760c (patch)
tree8d0aeab4b04b42f141840647e6e06b55d98cdab4 /tools/target_dec_fuzzer.c
parent289cb3beff8d73537206c29dd5e155d19805425c (diff)
downloadffmpeg-0d9b0015ba716d015b5c29712d289e87e632760c.tar.gz
tools/target_dec_fuzzer: Remove mjpeg hack
ff_mjpeg_decoder is now referenced directly by the relevant decoders, so that the linker sees the dependency and just does the desired thing. So remove the hack. (Btw: The preprocessor does not do string comparisons, instead undefined tokens in #if checks evaluate to 0, making the check true regardless of the actual codec fuzzed (and leading to linker errors if the mjpeg decoder is disabled).) Reviewed-by: Kacper Michajlow <kasper93@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tools/target_dec_fuzzer.c')
-rw-r--r--tools/target_dec_fuzzer.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index b3be69f94d..2a8f39cb34 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -193,11 +193,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
extern FFCodec DECODER_SYMBOL(FFMPEG_DECODER);
codec_list[0] = &DECODER_SYMBOL(FFMPEG_DECODER);
-#if FFMPEG_DECODER == tiff || FFMPEG_DECODER == tdsc
- extern FFCodec DECODER_SYMBOL(mjpeg);
- codec_list[1] = &DECODER_SYMBOL(mjpeg);
-#endif
-
c = &DECODER_SYMBOL(FFMPEG_DECODER);
#else
c = AVCodecInitialize(FFMPEG_CODEC); // Done once.