aboutsummaryrefslogtreecommitdiffstats
path: root/tools/target_dec_fuzzer.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2025-06-06 19:20:33 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2025-06-07 14:33:26 +0200
commitccfea9696f19dfff2b372da0b30bd1f5a276d06c (patch)
tree4f05b85c4ab8299ba14402446555a3343f076608 /tools/target_dec_fuzzer.c
parent0c12265b0586c795a60945f39f50a61e9987cee3 (diff)
downloadffmpeg-ccfea9696f19dfff2b372da0b30bd1f5a276d06c.tar.gz
tools/target_dec_fuzzer: suppress Wunused-function
Signed-off-by: Kacper Michajłow <kasper93@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tools/target_dec_fuzzer.c')
-rw-r--r--tools/target_dec_fuzzer.c3
1 files changed, 3 insertions, 0 deletions
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)