diff --git a/CMake/DefineOptions.cmake b/CMake/DefineOptions.cmake index 7f4fcb9b8b..177d62edd4 100644 --- a/CMake/DefineOptions.cmake +++ b/CMake/DefineOptions.cmake @@ -33,6 +33,7 @@ else() option(WITH_FFMPEG "Build with FFMPEG." ON) # Builder beware: later versions of ffmpeg may break! option(WITH_SYSTEM_FFMPEG "Build with the system's FFMPEG." OFF) + option(WITH_CRYSTALHD_DISABLED "Build FFMPEG without Crystal HD support." OFF) option(WITH_LIBVA "Build with libVa support for Video Acceleration." OFF) option(WITH_TTY "Build with Linux TTY Input Support." OFF) option(WITH_PROFILING "Build with Profiling Support." OFF) diff --git a/CMakeLists.txt b/CMakeLists.txt index 04b8c344ae..2def5a415c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -291,6 +291,10 @@ elseif(LINUX) ) endif() + if (WITH_CRYSTALHD_DISABLED) + list(APPEND FFMPEG_CONFIGURE "--disable-crystalhd") + endif() + if (NOT WITH_EXTERNAL_WARNINGS) list(APPEND FFMPEG_CONFIGURE "--extra-cflags=-w"