FS-8130 don't set packet loss percent

This commit is contained in:
Anthony Minessale 2015-09-11 11:37:01 -05:00
parent e0f57dcfba
commit c195ee4c60
1 changed files with 4 additions and 0 deletions

View File

@ -819,6 +819,10 @@ static switch_status_t switch_opus_control(switch_codec_t *codec,
calc = plpct % 10;
plpct = plpct - calc + ( calc ? 10 : 0);
if (opus_prefs.plpct > 0 && plpct < opus_prefs.plpct) {
plpct = opus_prefs.plpct;
}
if (plpct != context->old_plpct) {
opus_encoder_ctl(context->encoder_object, OPUS_SET_PACKET_LOSS_PERC(plpct));