diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-06-24 14:17:13 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-06-27 15:36:27 +0400 |
commit | fa84506177f0246b30d4ea6a99ee5d419f3e4550 (patch) | |
tree | 43bdc7da52b17e9eec479e19ea8cad0b9d21e438 /libavcodec | |
parent | 46df708b45b34191973ef5181b052ce8e583bb4e (diff) |
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@martin.st>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dxva2_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/dxva2_internal.h b/libavcodec/dxva2_internal.h index 57fc7bd6f9..e2305b1a24 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" |