You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
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>
This commit is contained in:
@ -193,11 +193,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|||||||
extern FFCodec DECODER_SYMBOL(FFMPEG_DECODER);
|
extern FFCodec DECODER_SYMBOL(FFMPEG_DECODER);
|
||||||
codec_list[0] = &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);
|
c = &DECODER_SYMBOL(FFMPEG_DECODER);
|
||||||
#else
|
#else
|
||||||
c = AVCodecInitialize(FFMPEG_CODEC); // Done once.
|
c = AVCodecInitialize(FFMPEG_CODEC); // Done once.
|
||||||
|
Reference in New Issue
Block a user