From: Michael Jerris Date: Tue, 9 Jun 2015 18:42:44 +0000 (-0400) Subject: FS-7601: [mod_opus] remove a bounds check that can never be true in opus fec code X-Git-Tag: v1.6.2~529 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20f9b5c046e0ff56278da212ed9b3bb1af61f2ad;p=thirdparty%2Ffreeswitch.git FS-7601: [mod_opus] remove a bounds check that can never be true in opus fec code --- diff --git a/src/mod/codecs/mod_opus/mod_opus.c b/src/mod/codecs/mod_opus/mod_opus.c index 2d7ee4c77a..efc1513cd8 100644 --- a/src/mod/codecs/mod_opus/mod_opus.c +++ b/src/mod/codecs/mod_opus/mod_opus.c @@ -505,10 +505,6 @@ static switch_status_t switch_opus_control(switch_codec_t *codec, uint32_t plpct = *((uint32_t *) cmd_data); uint32_t calc; - if (plpct < 0) { - plpct = 0; - } - if (plpct > 100) { plpct = 100; }