summaryrefslogtreecommitdiffstats
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-11-11 10:32:09 -0300
committerJames Almer <jamrial@gmail.com>2017-11-11 11:29:16 -0300
commit87865bf6c7001e6fd8c536a247f71a9a426c3bd0 (patch)
tree1a97298933e784025f282c21cbd15b3ce2a84711 /libavcodec/internal.h
parentf87ad3a058bfee786e942106c5c3450c02a66d48 (diff)
parentabf1c058d1bd0ed1b820ea5e501a4484756f00b0 (diff)
downloadffmpeg-streaming-87865bf6c7001e6fd8c536a247f71a9a426c3bd0.zip
ffmpeg-streaming-87865bf6c7001e6fd8c536a247f71a9a426c3bd0.tar.gz
Merge commit 'abf1c058d1bd0ed1b820ea5e501a4484756f00b0'
* commit 'abf1c058d1bd0ed1b820ea5e501a4484756f00b0': msvc: Properly specify dllexport for data symbols shared across dll boundaries Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 948d546..522032b 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -414,4 +414,14 @@ int ff_alloc_a53_sei(const AVFrame *frame, size_t prefix_len,
*/
int64_t ff_guess_coded_bitrate(AVCodecContext *avctx);
+#if defined(_MSC_VER) && CONFIG_SHARED
+#ifdef BUILDING_avcodec
+# define av_export_avcodec __declspec(dllexport)
+#else
+# define av_export_avcodec __declspec(dllimport)
+#endif
+#else
+# define av_export_avcodec
+#endif
+
#endif /* AVCODEC_INTERNAL_H */
OpenPOWER on IntegriCloud