diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-25 07:45:51 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-27 10:43:14 -0300 |
commit | 626535f6a169e2d821b969e0ea77125ba7482113 (patch) | |
tree | bfab6bbc7157ec5163ed8ae3bf3978f74f4fdd3e /tools | |
parent | 14fa0a4efbc989619860ed8ec0fd33dcdae558b0 (diff) | |
download | ffmpeg-626535f6a169e2d821b969e0ea77125ba7482113.tar.gz |
avcodec/codec, allcodecs: Constify the AVCodec API
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/target_dec_fuzzer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index fad44a4101..2bdf9ea8d5 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -59,7 +59,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size); -extern AVCodec * codec_list[]; +extern const AVCodec * codec_list[]; static void error(const char *err) { @@ -67,10 +67,10 @@ static void error(const char *err) exit(1); } -static AVCodec *c = NULL; -static AVCodec *AVCodecInitialize(enum AVCodecID codec_id) +static const AVCodec *c = NULL; +static const AVCodec *AVCodecInitialize(enum AVCodecID codec_id) { - AVCodec *res; + const AVCodec *res; res = avcodec_find_decoder(codec_id); if (!res) |