From d57ab43f3219460409f0d32c0b2bf3055991af9d Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 16 Sep 2015 17:05:00 -0500 Subject: [PATCH] FS-8130 code error --- src/mod/codecs/mod_opus/mod_opus.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 };