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>
(cherry picked from commit fa84506177
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:

committed by
Michael Niedermayer

parent
c497d71a02
commit
9a5e81235e
2
configure
vendored
2
configure
vendored
@@ -1057,6 +1057,7 @@ HAVE_LIST="
|
|||||||
dlfcn_h
|
dlfcn_h
|
||||||
dlopen
|
dlopen
|
||||||
dos_paths
|
dos_paths
|
||||||
|
dxva_h
|
||||||
ebp_available
|
ebp_available
|
||||||
ebx_available
|
ebx_available
|
||||||
exp2
|
exp2
|
||||||
@@ -2859,6 +2860,7 @@ check_func_headers windows.h MapViewOfFile
|
|||||||
check_func_headers windows.h VirtualAlloc
|
check_func_headers windows.h VirtualAlloc
|
||||||
|
|
||||||
check_header dlfcn.h
|
check_header dlfcn.h
|
||||||
|
check_header dxva.h
|
||||||
check_header dxva2api.h
|
check_header dxva2api.h
|
||||||
check_header libcrystalhd/libcrystalhd_if.h
|
check_header libcrystalhd/libcrystalhd_if.h
|
||||||
check_header malloc.h
|
check_header malloc.h
|
||||||
|
@@ -25,7 +25,14 @@
|
|||||||
|
|
||||||
#define _WIN32_WINNT 0x0600
|
#define _WIN32_WINNT 0x0600
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include "dxva2.h"
|
#include "dxva2.h"
|
||||||
|
#if HAVE_DXVA_H
|
||||||
|
#include <dxva.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "mpegvideo.h"
|
#include "mpegvideo.h"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user