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 6e687c2 commit 5a806faCopy full SHA for 5a806fa
src/CMakeLists.txt
@@ -7,10 +7,12 @@ find_package(FFmpeg
7
COMPONENTS avcodec avformat avutil swscale swresample avresample)
8
9
# Check if FFmpeg or libav dependency
10
-if(EXISTS "${FFMPEG_INCLUDE_DIR}/libavresample/avresample.h")
+if(avresample_VERSION)
11
add_definitions(-DAV_RESAMPLE_LIBRARY)
12
-else()
+elseif(swresample_VERSION)
13
add_definitions(-DFF_RESAMPLE_LIBRARY)
14
+else()
15
+ message(SEND_ERROR, "Need 'swresample' or 'avresample'.")
16
endif()
17
18
# Include AvTranscoder and FFmpeg
0 commit comments