mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-13 18:51:01 +00:00
[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:
parent
b97bc60c20
commit
92ca4293db
@ -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)
|
||||
|
@ -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*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user