[FFmpeg-devel] [PATCH 4/5] libx265: Properly handled dynamic linking with MSVC

Derek Buitenhuis derek.buitenhuis at gmail.com
Fri Feb 21 18:15:32 CET 2014


Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
 libavcodec/libx265.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
index b16ee38..3bdb19a 100644
--- a/libavcodec/libx265.c
+++ b/libavcodec/libx265.c
@@ -29,6 +29,10 @@
 #include "avcodec.h"
 #include "internal.h"
 
+#if defined(_MSC_VER)
+#define X265_API_IMPORTS 1
+#endif
+
 typedef struct libx265Context {
     const AVClass *class;
 
-- 
1.9.0.rc3



More information about the ffmpeg-devel mailing list