Force linking against user32 if dxva2 is enabled.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 17 Feb 2015 10:39:09 +0000 (11:39 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 17 Feb 2015 12:25:23 +0000 (13:25 +0100)
Fixes compilation with vfwcap disabled.
Reported and tested by Bernhard Döbler, programmer bardware de

Reviewed-by: Matt Oliver
configure

index 1d14d0a..940dffb 100755 (executable)
--- a/configure
+++ b/configure
@@ -5373,7 +5373,7 @@ if test $target_os = "haiku"; then
 fi
 
 enabled_all dxva2 dxva2api_cobj CoTaskMemFree &&
-    prepend ffmpeg_libs $($ldflags_filter "-lole32") &&
+    prepend ffmpeg_libs $($ldflags_filter "-lole32" "-luser32") &&
     enable dxva2_lib
 
 ! enabled_any memalign posix_memalign aligned_malloc &&