diff --git a/src/modules/audio_conference_mixer/source/audio_conference_mixer_impl.cc b/src/modules/audio_conference_mixer/source/audio_conference_mixer_impl.cc index 6934c522a..7c982a8a7 100644 --- a/src/modules/audio_conference_mixer/source/audio_conference_mixer_impl.cc +++ b/src/modules/audio_conference_mixer/source/audio_conference_mixer_impl.cc @@ -556,10 +556,11 @@ WebRtc_Word32 AudioConferenceMixerImpl::SetMixabilityStatus( return -1; } - const int numMixedNonAnonymous = (_participantList.GetSize() < - kMaximumAmountOfMixedParticipants) ? _participantList.GetSize() : - kMaximumAmountOfMixedParticipants; - + int numMixedNonAnonymous = _participantList.GetSize(); + if (numMixedNonAnonymous > kMaximumAmountOfMixedParticipants) + { + numMixedNonAnonymous = kMaximumAmountOfMixedParticipants; + } numMixedParticipants = numMixedNonAnonymous + _additionalParticipantList.GetSize(); }