We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7373f56 commit cb22c08Copy full SHA for cb22c08
src/CMakeLists.txt
@@ -11,6 +11,13 @@ set(FFMPEG_INCLUDE_DIR "/path/to/ffmpeg/include/" CACHE STRING "")
11
set(FFMPEG_LIBRARY_DIR "/path/to/ffmpeg/lib/" CACHE STRING "")
12
file(GLOB_RECURSE FFMPEG_LIBS "${FFMPEG_LIBRARY_DIR}/*.so")
13
14
+# Check if FFmpeg or libav dependency
15
+if(EXISTS "${FFMPEG_INCLUDE_DIR}/libavresample/avresample.h")
16
+ add_definitions(-DAV_RESAMPLE_LIBRARY=1)
17
+else()
18
+ add_definitions(-DFF_RESAMPLE_LIBRARY=1)
19
+endif()
20
+
21
# Include AvTranscoder and FFmpeg
22
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${FFMPEG_INCLUDE_DIR})
23
0 commit comments