[mod_amr, mod_amrwb] Increase AMR-NB and AMR-WB max decode buffer size by one byte

Co-authored-by: Patty Watson <patty.watson@ryzyliant.com>
This commit is contained in:
Patty Watson 2025-06-11 17:13:52 -04:00 committed by GitHub
parent b97bc60c20
commit 92ca4293db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ static struct {
const int switch_amr_frame_sizes[] = {12,13,15,17,19,20,26,31,5,0,0,0,0,0,0,1};
#define SWITCH_AMR_OUT_MAX_SIZE 32
#define SWITCH_AMR_OUT_MAX_SIZE 33
#define SWITCH_AMR_MODES 9 /* plus SID */
static switch_bool_t switch_amr_unpack_oa(unsigned char *buf, uint8_t *tmp, int encoded_data_len)

View File

@ -94,7 +94,7 @@ static struct {
const int switch_amrwb_frame_sizes[] = {17, 23, 32, 36, 40, 46, 50, 58, 60, 5, 0, 0, 0, 0, 1, 1};
#define SWITCH_AMRWB_OUT_MAX_SIZE 61
#define SWITCH_AMRWB_OUT_MAX_SIZE 62
#define SWITCH_AMRWB_MODES 10 /* Silence Indicator (SID) included */
#define invalid_frame_type (index > SWITCH_AMRWB_MODES && index != 0xe && index != 0xf) /* include SPEECH_LOST and NO_DATA*/