From abf1c058d1bd0ed1b820ea5e501a4484756f00b0 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Thu, 24 Aug 2017 22:07:04 +0300 Subject: msvc: Properly specify dllexport for data symbols shared across dll boundaries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We currently only have exported data symbols within libavcodec, but the concept is easy to extend to other libraries if necessary. The attribute declaration needs to be in a private header though, since we can't use CONFIG_SHARED in public installed headers. Signed-off-by: Martin Storsjö --- libavcodec/dca.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/dca.h') diff --git a/libavcodec/dca.h b/libavcodec/dca.h index 787a9c74de..b2f5cbacf4 100644 --- a/libavcodec/dca.h +++ b/libavcodec/dca.h @@ -28,12 +28,12 @@ #include #include "libavutil/float_dsp.h" -#include "libavutil/internal.h" #include "avcodec.h" #include "dcadsp.h" #include "fmtconvert.h" #include "get_bits.h" +#include "internal.h" #define DCA_PRIM_CHANNELS_MAX (7) #define DCA_ABITS_MAX (32) /* Should be 28 */ @@ -288,7 +288,7 @@ typedef struct DCAContext { FmtConvertContext fmt_conv; } DCAContext; -extern av_export const uint32_t avpriv_dca_sample_rates[16]; +extern av_export_avcodec const uint32_t avpriv_dca_sample_rates[16]; /** * Convert bitstream to one representation based on sync marker -- cgit v1.2.3