Disable opus on Windows Phone 8 devices with a single CPU.

This commit is contained in:
Ghislain MARY 2015-03-20 15:40:03 +01:00
parent c03389c14c
commit bee22b84f2

View file

@ -1569,7 +1569,7 @@ static void linphone_core_register_default_codecs(LinphoneCore *lc){
const char *aac_fmtp162248, *aac_fmtp3244;
bool_t opus_enabled=TRUE;
/*default enabled audio codecs, in order of preference*/
#ifdef __arm__
#if defined(__arm__) || defined(_M_ARM)
/*hack for opus, that needs to be disabed by default on ARM single processor, otherwise there is no cpu left for video processing*/
if (ms_get_cpu_count()==1) opus_enabled=FALSE;
#endif