vcpkg/ports/pangolin/add-definition.patch
NancyLi1013 2543be2edf
[pangolin] Fix static build error (#15593)
* [pangolin] Fix static build error

* Update versions

* Update dependency for pangolin

* Update pangolin.json
2021-03-11 12:14:34 -08:00

14 lines
385 B
Diff

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9e0baac..bb3ef76 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -287,6 +287,8 @@ if(BUILD_PANGOLIN_VIDEO AND _LINUX_)
message(STATUS "V4L Found and Enabled")
endif()
+add_definitions(-DHAVE_FFMPEG_AVPIXELFORMAT)
+
find_package(FFMPEG QUIET)
if(BUILD_PANGOLIN_VIDEO AND FFMPEG_FOUND)
set(HAVE_FFMPEG 1)