Skip to content

Commit 56e29ec

Browse files
committed
Explicitly enable d3d11va on windows.
This fixes cross compilation.
1 parent a0a4e8f commit 56e29ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ if [ "$TARGET_OS" == "windows" ]; then
2828
export CROSS_COMPILE="x86_64-w64-mingw32-"
2929
export FFMPEG_EXTRA_ARGS="--arch=x86_64 --target-os=mingw64 \
3030
--cross-prefix=x86_64-w64-mingw32- --enable-nvenc --enable-ffnvcodec \
31-
--enable-cuda-llvm --enable-mediafoundation --pkg-config=pkg-config"
31+
--enable-cuda-llvm --enable-mediafoundation --pkg-config=pkg-config --enable-d3d11va"
3232
export FFMPEG_CFLAGS="-I$DIST/include"
3333
export FFMPEG_LIBRARY_PATH="-L$DIST/lib"
3434
else
3535
export CC="cl"
3636
export FFMPEG_EXTRA_ARGS="--toolchain=msvc --enable-nvenc --enable-ffnvcodec \
37-
--enable-cuda-llvm --enable-mediafoundation"
37+
--enable-cuda-llvm --enable-mediafoundation --enable-d3d11va"
3838
export FFMPEG_CFLAGS="-I$DIST/include"
3939
export FFMPEG_LIBRARY_PATH="-LIBPATH:$DIST/lib"
4040
fi

0 commit comments

Comments
 (0)