diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libdshowcapture/fix_build.patch | |
Diffstat (limited to 'vcpkg/ports/libdshowcapture/fix_build.patch')
| -rwxr-xr-x | vcpkg/ports/libdshowcapture/fix_build.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/libdshowcapture/fix_build.patch b/vcpkg/ports/libdshowcapture/fix_build.patch new file mode 100755 index 0000000..21f6435 --- /dev/null +++ b/vcpkg/ports/libdshowcapture/fix_build.patch @@ -0,0 +1,27 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2c88ff6..ee1688b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -6,8 +6,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Mo + + option(BUILD_SHARED_LIBS "Build shared library" ON) + +-find_package(CXX11 REQUIRED) +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX11_FLAGS}") ++set(CMAKE_CXX_STANDARD 17) + + if(${CMAKE_C_COMPILER_ID} MATCHES "Clang" OR ${CMAKE_CXX_COMPILER_ID} MATCHES + "Clang") +diff --git a/source/dshow-formats.cpp b/source/dshow-formats.cpp +index 4baf381..3f41a99 100644 +--- a/source/dshow-formats.cpp ++++ b/source/dshow-formats.cpp +@@ -283,7 +283,7 @@ bool GetMediaTypeVFormat(const AM_MEDIA_TYPE &mt, VideoFormat &format) + + /* raw formats */ + if (mt.subtype == MEDIASUBTYPE_RGB24) +- format = VideoFormat::XRGB; ++ format = VideoFormat::RGB24; + else if (mt.subtype == MEDIASUBTYPE_RGB32) + format = VideoFormat::XRGB; + else if (mt.subtype == MEDIASUBTYPE_ARGB32) |