From ccfea9696f19dfff2b372da0b30bd1f5a276d06c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 6 Jun 2025 19:20:33 +0200 Subject: [PATCH] tools/target_dec_fuzzer: suppress Wunused-function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kacper Michajłow Signed-off-by: Michael Niedermayer --- tools/target_dec_fuzzer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index dfff167f78..9e4d5bd64b 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -72,6 +72,8 @@ static void error(const char *err) } static const FFCodec *c = NULL; + +#ifndef FFMPEG_DECODER static const FFCodec *AVCodecInitialize(enum AVCodecID codec_id) { const AVCodec *res; @@ -81,6 +83,7 @@ static const FFCodec *AVCodecInitialize(enum AVCodecID codec_id) error("Failed to find decoder"); return ffcodec(res); } +#endif static int subtitle_handler(AVCodecContext *avctx, AVFrame *unused, int *got_sub_ptr, const AVPacket *avpkt)