Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/mod/codecs/mod_amr/mod_amr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/mod/codecs/mod_amrwb/mod_amrwb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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*/
Expand Down