[FFmpeg-cvslog] tools/target_bsf_fuzzer: Make it const-correct

Andreas Rheinhardt git at videolan.org
Tue Sep 14 15:27:06 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Sep  6 19:38:09 2021 +0200| [b2793a946257da3c62522c5d8e2e8e0cb534d0e9] | committer: Andreas Rheinhardt

tools/target_bsf_fuzzer: Make it const-correct

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b2793a946257da3c62522c5d8e2e8e0cb534d0e9
---

 tools/target_bsf_fuzzer.c | 4 ++--
 1 file 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);



More information about the ffmpeg-cvslog mailing list