summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2017-06-09 12:05:00 +0300
committerwm4 <nfxjfg@googlemail.com>2017-06-27 18:05:02 +0200
commit3125a4a8a8fc7dde938bff6a668f53b26bf47860 (patch)
tree012194e1b0cf235413d5d26b7a0ded934d754675 /configure
parent70143a3954e1c4412efb2bf1a3a818adea2d3abf (diff)
downloadffmpeg-streaming-3125a4a8a8fc7dde938bff6a668f53b26bf47860.zip
ffmpeg-streaming-3125a4a8a8fc7dde938bff6a668f53b26bf47860.tar.gz
d3d11va: Link directly to dxgi.dll and d3d11.dll functions if LoadLibrary is unavailable
When targeting the UWP API subset, the LoadLibrary function is not available (and the fallback, LoadPackagedLibrary, can't be used to load system DLLs). In these cases, link directly to the functions in the DLLs instead of trying to load them dynamically at runtime. Merges Libav commit fd1ffa1f10e940165035ccb79d4a6523da196062. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index aebd5d5..bf48472 100755
--- a/configure
+++ b/configure
@@ -6120,6 +6120,10 @@ fi
check_func_headers "windows.h" CreateDIBSection "$gdigrab_indev_extralibs"
+# d3d11va requires linking directly to dxgi and d3d11 if not building for
+# the desktop api partition
+enabled LoadLibrary || d3d11va_extralibs="-ldxgi -ld3d11"
+
enabled vaapi &&
check_lib vaapi va/va.h vaInitialize -lva
OpenPOWER on IntegriCloud