summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavcodec/allcodecs.c5
-rw-r--r--tools/target_dec_fuzzer.c5
2 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c
index 7b7a8c7..90d170b 100644
--- a/libavcodec/allcodecs.c
+++ b/libavcodec/allcodecs.c
@@ -762,7 +762,10 @@ extern AVCodec ff_vp9_vaapi_encoder;
// The iterate API is not usable with ossfuzz due to the excessive size of binaries created
#if CONFIG_OSSFUZZ
-extern AVCodec * codec_list[];
+AVCodec * codec_list[] = {
+ NULL,
+ NULL
+};
#else
#include "libavcodec/codec_list.c"
#endif
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index 26a4cc2..a0e8943 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -56,10 +56,7 @@
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
-AVCodec * codec_list[] = {
- NULL,
- NULL
-};
+extern AVCodec * codec_list[];
static void error(const char *err)
{
OpenPOWER on IntegriCloud