From 20f9b5c046e0ff56278da212ed9b3bb1af61f2ad Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 9 Jun 2015 14:42:44 -0400 Subject: [PATCH] FS-7601: [mod_opus] remove a bounds check that can never be true in opus fec code --- src/mod/codecs/mod_opus/mod_opus.c | 4 ---- 1 file changed, 4 deletions(-) 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; }