--- libavcodec/golomb.h.orig	2022-07-22 19:58:39.000000000 +0200
+++ libavcodec/golomb.h	2022-10-23 22:12:31.000000000 +0200
@@ -32,13 +32,20 @@
 
 #include <stdint.h>
 
+#include "libavutil/internal.h"
 #include "get_bits.h"
 
 #define INVALID_VLC           0x80000000
 
+#ifdef _MSC_VER
+extern __declspec(dllimport) const uint8_t ff_golomb_vlc_len[512];
+extern __declspec(dllimport) const uint8_t ff_ue_golomb_vlc_code[512];
+extern __declspec(dllimport) const  int8_t ff_se_golomb_vlc_code[512];
+#else
 extern const uint8_t ff_golomb_vlc_len[512];
 extern const uint8_t ff_ue_golomb_vlc_code[512];
 extern const  int8_t ff_se_golomb_vlc_code[512];
+#endif
 
 extern const uint8_t ff_interleaved_golomb_vlc_len[256];
 extern const uint8_t ff_interleaved_ue_golomb_vlc_code[256];
