[vlc-devel] [PATCH] deinterlace: fix MSVC compilation

Steve Lhomme robUx4 at videolabs.io
Fri Mar 27 08:57:52 CET 2015


---
 modules/video_filter/deinterlace/yadif.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_filter/deinterlace/yadif.h b/modules/video_filter/deinterlace/yadif.h
index d91c147..05e5492 100644
--- a/modules/video_filter/deinterlace/yadif.h
+++ b/modules/video_filter/deinterlace/yadif.h
@@ -29,6 +29,8 @@
 #  else
 #    define DECLARE_ASM_CONST(n,t,v)    static const t __attribute__ ((aligned (n))) v
 #  endif
+#elif defined(_MSC_VER)
+#    define DECLARE_ASM_CONST(n,t,v)    __declspec(align(n)) static const t v
 #endif
 
 typedef intptr_t x86_reg;
-- 
2.3.4




More information about the vlc-devel mailing list