From b6586a3521cc1640660380cb8ac2ffaa6319d15e Mon Sep 17 00:00:00 2001 From: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com> Date: Thu, 1 Feb 2018 17:30:32 -0500 Subject: [PATCH] disable VP8 encoding for iOS Change-Id: I2e23a83ae992c4ed0063dafff34d3a49ee006681 Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> --- src/media/system_codec_container.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/media/system_codec_container.cpp b/src/media/system_codec_container.cpp index 99ca814aca..20f18443f0 100644 --- a/src/media/system_codec_container.cpp +++ b/src/media/system_codec_container.cpp @@ -27,6 +27,10 @@ #include <sstream> +#ifdef APPLE +#include <TargetConditionals.h> +#endif + namespace ring { decltype(getGlobalInstance<SystemCodecContainer>)& getSystemCodecContainer = getGlobalInstance<SystemCodecContainer>; @@ -61,12 +65,14 @@ SystemCodecContainer::initCodecConfig() minH264, maxH264), +#if !(defined(TARGET_OS_IOS) && TARGET_OS_IOS) std::make_shared<SystemVideoCodecInfo>(AV_CODEC_ID_VP8, "VP8", "libvpx", CODEC_ENCODER_DECODER, defaultBitrate, minVP8, maxVP8), +#endif std::make_shared<SystemVideoCodecInfo>(AV_CODEC_ID_MPEG4, "MP4V-ES", "mpeg4", -- GitLab