mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
tools/target_bsf_fuzzer: Make it const-correct
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
a1292895cb
commit
b2793a9462
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user