Increase AMR-NB and AMR-WB max decode buffer size by one byte #2801
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In testing AMR-NB and AMR-WB at the maximum bit rate, I noticed every packet decode would throw an error similar to this:
[ERR] switch_core_io.c:633 Codec RAW Signed Linear (16 bit) decoder error! [1]
Packet encoding worked fine, but I noticed the encoded_data_len size was larger than the SWITCH_AMRWB_OUT_MAX_SIZE.
[DEBUG] mod_amrwb.c:179 AMRWB encoder (OA): AMRWB encoded voice payload sz: [60] : | encoded_data_len: [62]
Modified the SWITCH_AMR_OUT_MAX_SIZE and SWITCH_AMRWB_OUT_MAX_SIZE constants to align decoding with encoding.