From edecedd3ee2cf627d59a16fc6a79e29291ee7746 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Fri, 8 May 2015 22:12:47 -0400 Subject: [PATCH] Allow disabling CrystalHD for ffmpeg. --- CMake/DefineOptions.cmake | 1 + CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+) 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"