[FFmpeg-cvslog] dxva2: include dxva.h if found

Ronald S. Bultje git at videolan.org
Thu Sep 13 04:51:24 CEST 2012


ffmpeg | branch: release/0.6 | Ronald S. Bultje <rsbultje at gmail.com> | Sun Jun 24 11:17:13 2012 +0100| [371e221d632d3e2450223c152c8c7e26ae4005a8] | committer: Michael Niedermayer

dxva2: include dxva.h if found

Apparently, some build environments require dxva.h even for dxva2,
while others lack this header entirely.  Including it conditionally
allows building in both cases.

Signed-off-by: Martin Storsjö <martin at martin.st>
(cherry picked from commit fa84506177f0246b30d4ea6a99ee5d419f3e4550)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=371e221d632d3e2450223c152c8c7e26ae4005a8
---

 configure                   |    2 ++
 libavcodec/dxva2_internal.h |    7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/configure b/configure
index 89bd4dc..9587c88 100755
--- a/configure
+++ b/configure
@@ -1037,6 +1037,7 @@ HAVE_LIST="
     dlfcn_h
     dlopen
     dos_paths
+    dxva_h
     ebp_available
     ebx_available
     exp2
@@ -2543,6 +2544,7 @@ check_func_headers windows.h VirtualAlloc
 
 check_header conio.h
 check_header dlfcn.h
+check_header dxva.h
 check_header dxva2api.h
 check_header malloc.h
 check_header poll.h
diff --git a/libavcodec/dxva2_internal.h b/libavcodec/dxva2_internal.h
index 23d4d87..fcf45bc 100644
--- a/libavcodec/dxva2_internal.h
+++ b/libavcodec/dxva2_internal.h
@@ -25,7 +25,14 @@
 
 #define _WIN32_WINNT 0x0600
 #define COBJMACROS
+
+#include "config.h"
+
 #include "dxva2.h"
+#if HAVE_DXVA_H
+#include <dxva.h>
+#endif
+
 #include "avcodec.h"
 #include "mpegvideo.h"
 



More information about the ffmpeg-cvslog mailing list