Skip to content
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

voice: fix encryption buffer size #568

Merged

Conversation

lost-illusi0n
Copy link
Contributor

During the initial implementation, I used the length 968 for the max buffer size during encryption of OPUS packets... I'm not sure how I came up with the number, and it is incorrect. The buffer should be able to hold the largest size of an OPUS packet, which is 1276 according to the RFC spec for the Opus Audio Codec. This commit updates this value to adhere to the Opus spec.

@HopeBaron HopeBaron merged commit 099f0b9 into kordlib:0.8.x Mar 15, 2022
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.

2 participants