]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use OPUS_APPLICATION_VOIP always to get FEC and filtering
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 1 Oct 2014 23:33:33 +0000 (18:33 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 1 Oct 2014 23:33:33 +0000 (18:33 -0500)
src/mod/codecs/mod_opus/mod_opus.c

index 5a9593463f5fbb571b8fcc636bcd5045428012f5..23dff7a544f60bdd6b04c75c867da2e1a65ff323 100644 (file)
@@ -276,7 +276,7 @@ static switch_status_t switch_opus_init(switch_codec_t *codec, switch_codec_flag
         
                context->encoder_object = opus_encoder_create(samplerate,
                                                                                                          codec->implementation->number_of_channels,
-                                                                                                         codec->implementation->number_of_channels == 1 ? OPUS_APPLICATION_VOIP : OPUS_APPLICATION_AUDIO, &err);
+                                                                                                         OPUS_APPLICATION_VOIP, &err);
         
         if (err != OPUS_OK) {
             switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot create encoder: %s\n", opus_strerror(err));