]> git.sesse.net Git - ffmpeg/blobdiff - tools/target_dec_fuzzer.c
avcodec/codec, allcodecs: Constify the AVCodec API
[ffmpeg] / tools / target_dec_fuzzer.c
index fad44a4101cc9e59621ddcb179f8fbab4caf8081..2bdf9ea8d5d8b020a5d97775ea7b7f9087aeb5af 100644 (file)
@@ -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)