aboutsummaryrefslogtreecommitdiffstats
path: root/tools/target_bsf_fuzzer.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-06 19:38:09 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-14 13:36:31 +0200
commitb2793a946257da3c62522c5d8e2e8e0cb534d0e9 (patch)
tree3ceaaa4bd18d677f58ee6717408ec2cea7d097e1 /tools/target_bsf_fuzzer.c
parenta1292895cb3f7cfe0c68b9201f7e22144984f6f4 (diff)
downloadffmpeg-b2793a946257da3c62522c5d8e2e8e0cb534d0e9.tar.gz
tools/target_bsf_fuzzer: Make it const-correct
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tools/target_bsf_fuzzer.c')
-rw-r--r--tools/target_bsf_fuzzer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/target_bsf_fuzzer.c b/tools/target_bsf_fuzzer.c
index 73bf4bdf0e..d6aaee3bd9 100644
--- a/tools/target_bsf_fuzzer.c
+++ b/tools/target_bsf_fuzzer.c
@@ -34,7 +34,7 @@ static void error(const char *err)
exit(1);
}
-static AVBitStreamFilter *f = NULL;
+static const AVBitStreamFilter *f = NULL;
static const uint64_t FUZZ_TAG = 0x4741542D5A5A5546ULL;
@@ -52,7 +52,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
#ifdef FFMPEG_BSF
#define BSF_SYMBOL0(BSF) ff_##BSF##_bsf
#define BSF_SYMBOL(BSF) BSF_SYMBOL0(BSF)
- extern AVBitStreamFilter BSF_SYMBOL(FFMPEG_BSF);
+ extern const AVBitStreamFilter BSF_SYMBOL(FFMPEG_BSF);
f = &BSF_SYMBOL(FFMPEG_BSF);
#endif
av_log_set_level(AV_LOG_PANIC);