[PATCH] Fix dxva2 compilation with mingw-w64

Kyle Schwarz kshawkeye
Fri Feb 25 07:10:37 CET 2011


_WIN32_WINNT must be defined as 0x0600 to allow Vista features, and
COBJMACROS must be defined to enable C macros to manipulate the
interface objects
---
 libavcodec/dxva2_internal.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/dxva2_internal.h b/libavcodec/dxva2_internal.h
index a9be7a0..23d4d87 100644
--- a/libavcodec/dxva2_internal.h
+++ b/libavcodec/dxva2_internal.h
@@ -23,6 +23,8 @@
 #ifndef AVCODEC_DXVA_INTERNAL_H
 #define AVCODEC_DXVA_INTERNAL_H
 
+#define _WIN32_WINNT 0x0600
+#define COBJMACROS
 #include "dxva2.h"
 #include "avcodec.h"
 #include "mpegvideo.h"
-- 
1.7.1


--------------020401040705000205090609--



More information about the ffmpeg-devel mailing list