mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-20 20:13:18 +03:00
install ffmpeg lib with vcpkg (#8724)
* use vcpkg to install ffmpeg and build sdk from source, so no prebuild lib in hwcodec. * link ffmpeg in rustdesk directly, ffmpeg can be used as basic library. * for windows developers, `VCPKG_DEFAULT_HOST_TRIPLET` env need to be set to `x64-windows-static` during installation. Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
15
res/vcpkg/ffmpeg/0013-define-WINVER.patch
Normal file
15
res/vcpkg/ffmpeg/0013-define-WINVER.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff --color -Naur src_old/libavcodec/mf_utils.c src/libavcodec/mf_utils.c
|
||||
--- src_old/libavcodec/mf_utils.c 2020-07-11 05:26:17.000000000 +0700
|
||||
+++ src/libavcodec/mf_utils.c 2020-11-13 12:55:57.226976400 +0700
|
||||
@@ -22,6 +22,11 @@
|
||||
#define _WIN32_WINNT 0x0602
|
||||
#endif
|
||||
|
||||
+#if !defined(WINVER) || WINVER < 0x0602
|
||||
+#undef WINVER
|
||||
+#define WINVER 0x0602
|
||||
+#endif
|
||||
+
|
||||
#include "mf_utils.h"
|
||||
#include "libavutil/pixdesc.h"
|
||||
|
||||
Reference in New Issue
Block a user