From: Anthony Minessale Date: Wed, 16 Sep 2015 22:05:00 +0000 (-0500) Subject: FS-8130 code error X-Git-Tag: v1.6.2~1^2~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d57ab43f3219460409f0d32c0b2bf3055991af9d;p=thirdparty%2Ffreeswitch.git FS-8130 code error --- diff --git a/src/mod/codecs/mod_opus/mod_opus.c b/src/mod/codecs/mod_opus/mod_opus.c index c50418aa87..ead5ac28e3 100644 --- a/src/mod/codecs/mod_opus/mod_opus.c +++ b/src/mod/codecs/mod_opus/mod_opus.c @@ -585,11 +585,7 @@ static switch_status_t switch_opus_decode(switch_codec_t *codec, encoded_data = NULL; - if (opus_prefs.use_jb_lookahead || context->use_jb_lookahead) { - fec = 1; - } - - if (!fec && context->codec_settings.useinbandfec && session) { + if ((opus_prefs.use_jb_lookahead || context->use_jb_lookahead) && context->codec_settings.useinbandfec && session) { if (opus_packet_get_bandwidth(codec->cur_frame->data) != OPUS_BANDWIDTH_FULLBAND && codec->cur_frame && (jb = switch_core_session_get_jb(session, SWITCH_MEDIA_TYPE_AUDIO))) { switch_frame_t frame = { 0 };