mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-14 18:47:39 +01:00
Merge pull request #895 from PredatorCZ/master
ffmpeg version control for cmake
This commit is contained in:
commit
acf2da7bdf
@ -95,6 +95,17 @@ else()
|
|||||||
find_package(FFmpeg)
|
find_package(FFmpeg)
|
||||||
if(NOT FFMPEG_LIBRARIES)
|
if(NOT FFMPEG_LIBRARIES)
|
||||||
set(USE_FFMPEG OFF)
|
set(USE_FFMPEG OFF)
|
||||||
|
else()
|
||||||
|
if(${AVCODEC_VERSION} VERSION_LESS 57)
|
||||||
|
set(USE_FFMPEG OFF)
|
||||||
|
message("libavcodec version mismatch ${AVCODEC_VERSION} expected >=57")
|
||||||
|
elseif(${AVUTIL_VERSION} VERSION_LESS 55)
|
||||||
|
set(USE_FFMPEG OFF)
|
||||||
|
message("libavutil version mismatch ${AVUTIL_VERSION} expected >=55")
|
||||||
|
elseif(${SWRESAMPLE_VERSION} VERSION_LESS 2)
|
||||||
|
set(USE_FFMPEG OFF)
|
||||||
|
message("libswresample version mismatch ${SWRESAMPLE_VERSION} expected >=2")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user