Merge pull request #415 from dragos-oancea/mod_amr-build-val-never-read
[mod_amr] scan-build: Value stored to 'ft' is never read - switch_amr_unpack_be()
This commit is contained in:
commit
2d354257bc
|
@ -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)
|
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_tocs[2] = {0x00, 0x00};
|
||||||
uint8_t *shift_buf;
|
uint8_t *shift_buf;
|
||||||
|
|
||||||
memcpy(shift_tocs, encoded_buf, 2);
|
memcpy(shift_tocs, encoded_buf, 2);
|
||||||
/* shift for BE */
|
/* shift for BE */
|
||||||
switch_amr_array_lshift(4, shift_tocs, 2);
|
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_buf = encoded_buf + 1; /* skip CMR */
|
||||||
/* shift for BE */
|
/* shift for BE */
|
||||||
switch_amr_array_lshift(2, shift_buf, encoded_len - 1);
|
switch_amr_array_lshift(2, shift_buf, encoded_len - 1);
|
||||||
|
|
Loading…
Reference in New Issue