]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_amr] scan-build: Value stored to 'ft' is never read - switch_amr_unpack_be() 415/head
authorDragos Oancea <dragos@signalwire.com>
Tue, 25 Feb 2020 17:38:15 +0000 (17:38 +0000)
committerDragos Oancea <dragos@signalwire.com>
Tue, 25 Feb 2020 17:38:15 +0000 (17:38 +0000)
src/mod/codecs/mod_amr/amr_be.c

index 0613ad17368a58b1e4cb7f6d65ef41ebf5c1e36f..b7d9c9053da6dfc568d363fe55352d23e49939d0 100644 (file)
@@ -94,15 +94,13 @@ extern switch_bool_t switch_amr_pack_be(unsigned char *shift_buf, int n)
 
 extern switch_bool_t switch_amr_unpack_be(unsigned char *encoded_buf, uint8_t *tmp, int encoded_len)
 {
-       int framesz, index, ft;
+       int framesz, index;
        uint8_t shift_tocs[2] = {0x00, 0x00};
        uint8_t *shift_buf;
 
        memcpy(shift_tocs, encoded_buf, 2);
        /* shift for BE */
        switch_amr_array_lshift(4, shift_tocs, 2);
-       ft = shift_tocs[0] >> 3;
-       ft &= ~(1 << 5); /* Frame Type*/
        shift_buf = encoded_buf + 1; /* skip CMR */
        /* shift for BE */
        switch_amr_array_lshift(2, shift_buf, encoded_len - 1);