Skip to content

Check that we don't pass negative number into make()#64

Open
hugmouse wants to merge 1 commit intolayeh:masterfrom
hugmouse:master
Open

Check that we don't pass negative number into make()#64
hugmouse wants to merge 1 commit intolayeh:masterfrom
hugmouse:master

Conversation

@hugmouse
Copy link

If we use default config and specify maximum bitrate of <35000, then we get a negative number that is then passed into a make function in opus_nonshared that then panics.

As a hack - let's set a minimum of 6 bytes for AudioDataBytes (lowest value that worked in manual testing).

I haven't changed the calculation itself, as I'm not sure what the numbers 8, 32 and 10 mean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant