Commit bc478019 authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Michael Niedermayer

configure: check for recent dxva2api headers with fixed COBJMACROS defines

This fixes build failures on older mingw chains (before 2012).
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2201d1a0
...@@ -1762,6 +1762,7 @@ HAVE_LIST=" ...@@ -1762,6 +1762,7 @@ HAVE_LIST="
$TYPES_LIST $TYPES_LIST
atomics_native atomics_native
dos_paths dos_paths
dxva2api_cobj
dxva2_lib dxva2_lib
libc_msvcrt libc_msvcrt
libdc1394_1 libdc1394_1
...@@ -4802,6 +4803,16 @@ require Xfixes X11/extensions/Xfixes.h XFixesGetCursorImage -lXfixes && ...@@ -4802,6 +4803,16 @@ require Xfixes X11/extensions/Xfixes.h XFixesGetCursorImage -lXfixes &&
check_func_headers "windows.h" CreateDIBSection "$gdigrab_indev_extralibs" check_func_headers "windows.h" CreateDIBSection "$gdigrab_indev_extralibs"
enabled dxva2api_h &&
check_cc <<EOF && enable dxva2api_cobj
#define _WIN32_WINNT 0x0600
#define COBJMACROS
#include <windows.h>
#include <d3d9.h>
#include <dxva2api.h>
int main(void) { IDirectXVideoDecoder *o = NULL; IDirectXVideoDecoder_Release(o); return 0; }
EOF
enabled vaapi && enabled vaapi &&
check_lib va/va.h vaInitialize -lva || check_lib va/va.h vaInitialize -lva ||
disable vaapi disable vaapi
...@@ -5046,7 +5057,7 @@ if test $target_os = "haiku"; then ...@@ -5046,7 +5057,7 @@ if test $target_os = "haiku"; then
disable posix_memalign disable posix_memalign
fi fi
enabled_all dxva2 CoTaskMemFree && enabled_all dxva2 dxva2api_cobj CoTaskMemFree &&
prepend ffmpeg_libs $($ldflags_filter "-lole32") && prepend ffmpeg_libs $($ldflags_filter "-lole32") &&
enable dxva2_lib enable dxva2_lib
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment