Skip to content

Increase AMR-NB and AMR-WB max decode buffer size by one byte #2801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pwatson-ott2
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant