aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-29 01:32:04 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-29 01:47:53 +0200
commit21c7e99659bea1ed735caa83399a5777957a8e16 (patch)
treebbd48ff5d66fa33e75aea9580aa881a09f25966d /configure
parentc6eee3120a594cf25feb892f952a409a512d182e (diff)
parenta61c2115fb936d50b8b0328d00562fe529a7c46a (diff)
downloadffmpeg-21c7e99659bea1ed735caa83399a5777957a8e16.tar.gz
Merge commit 'a61c2115fb936d50b8b0328d00562fe529a7c46a'
* commit 'a61c2115fb936d50b8b0328d00562fe529a7c46a': configure: rework dxva in avconv handling Conflicts: Makefile configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure b/configure
index fad934c3ff..ee4393941a 100755
--- a/configure
+++ b/configure
@@ -1659,6 +1659,7 @@ SYSTEM_FUNCS="
clock_gettime
closesocket
CommandLineToArgvW
+ CoTaskMemFree
CryptGenRandom
dlopen
fcntl
@@ -1759,6 +1760,7 @@ HAVE_LIST="
$TYPES_LIST
atomics_native
dos_paths
+ dxva2_lib
libc_msvcrt
libdc1394_1
libdc1394_2
@@ -4501,6 +4503,7 @@ check_func_headers io.h setmode
check_func_headers lzo/lzo1x.h lzo1x_999_compress
check_func_headers stdlib.h getenv
+check_func_headers windows.h CoTaskMemFree -lole32
check_func_headers windows.h GetProcessAffinityMask
check_func_headers windows.h GetProcessTimes
check_func_headers windows.h GetSystemTimeAsFileTime
@@ -4800,10 +4803,6 @@ enabled vdpau && enabled xlib &&
prepend ffmpeg_libs $($ldflags_filter "-lvdpau") &&
enable vdpau_x11
-enabled dxva2 &&
- check_header dxva2api.h -D_WIN32_WINNT=0x0600 &&
- prepend ffmpeg_libs $($ldflags_filter "-lole32")
-
# Funny iconv installations are not unusual, so check it after all flags have been set
disabled iconv || check_func_headers iconv.h iconv || check_lib2 iconv.h iconv -liconv || disable iconv
@@ -5033,6 +5032,10 @@ if test $target_os = "haiku"; then
disable posix_memalign
fi
+enabled_all dxva2 CoTaskMemFree &&
+ prepend ffmpeg_libs $($ldflags_filter "-lole32") &&
+ enable dxva2_lib
+
! enabled_any memalign posix_memalign aligned_malloc &&
enabled_any $need_memalign && enable memalign_hack