Merge pull request #2006 from dragos-oancea/mod_amr-cov

[mod_amr] coverity CID 1395603 (Unsigned compared against 0)
This commit is contained in:
Andrey Volk 2023-03-29 19:19:47 +03:00 committed by GitHub
commit f5f7f76cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ extern int switch_amr_array_lshift(uint8_t lshift, uint8_t *buf, int a_len)
if (!buf || !a_len) if (!buf || !a_len)
return (-1); return (-1);
if ((lshift < 0) || (lshift > 8)) if (lshift > 8)
return (-1); return (-1);
first_byte = 0xFF >> lshift; first_byte = 0xFF >> lshift;