vcpkg/ports/ffmpeg/fix_windowsinclude-in-ffmpegexe-3.patch
Unknown 52034c287f allow building "ffmpeg.exe"
add new feature "ffmpeg" which allows to build "ffmpeg.exe" - ex. : vcpkg install ffmpeg[x264,gpl,nonfree,ffplay,ffprobe,openssl,lzma,opencl,ffmpeg]:x64-windows-static --recurse
2018-09-02 22:07:11 +02:00

20 lines
434 B
Diff

--- a/ffmpeg_dxva2.c 2017-07-29 19:49:29.000000000 +0200
+++ b/ffmpeg_dxva2.c 2018-09-02 20:33:48.248716100 +0200
@@ -16,12 +16,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <windows.h>
-
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define _WIN32_WINNT 0x0600
+#define WIN32_LEAN_AND_MEAN
+
+#include <windows.h>
+
#define DXVA2API_USE_BITFIELDS
#define COBJMACROS