]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7601: [mod_opus] remove a bounds check that can never be true in opus fec code
authorMichael Jerris <mike@jerris.com>
Tue, 9 Jun 2015 18:42:44 +0000 (14:42 -0400)
committerMichael Jerris <mike@jerris.com>
Tue, 9 Jun 2015 18:43:01 +0000 (14:43 -0400)
src/mod/codecs/mod_opus/mod_opus.c

index 2d7ee4c77ac9b0ae2b722f6c9aa2e54883c20193..efc1513cd8f9e18e9a92e9c37f025a3e22229ba3 100644 (file)
@@ -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;
                        }