diff --git a/cmake/ConfigOptions.cmake b/cmake/ConfigOptions.cmake index e7f478984..a9288cabf 100644 --- a/cmake/ConfigOptions.cmake +++ b/cmake/ConfigOptions.cmake @@ -164,8 +164,6 @@ option(WITH_SWSCALE "Use SWScale image library for screen resizing" OFF) if (ANDROID) include(ConfigOptionsAndroid) -else() - option(WITH_MEDIACODEC "Use MediaCodec API" OFF) endif(ANDROID) if (IOS) diff --git a/cmake/ConfigOptionsAndroid.cmake b/cmake/ConfigOptionsAndroid.cmake index 07dd60410..b241fabe7 100644 --- a/cmake/ConfigOptionsAndroid.cmake +++ b/cmake/ConfigOptionsAndroid.cmake @@ -19,4 +19,4 @@ option(WITH_OPENSLES "Enable sound and microphone redirection using OpenSLES" ON set(ANDROID_APP_TARGET_SDK 21 CACHE STRING "Application target android SDK") set(ANDROID_APP_MIN_SDK 14 CACHE STRING "Application minimum android SDK requirement") - +option(WITH_MEDIACODEC "Use MediaCodec API" ON)