Skip to content

Reject MP2 headers with bitrate index 0 - #11

Open
user-none wants to merge 1 commit into
gen2brain:mainfrom
user-none:fix-audio-bitrate-index
Open

user-none wants to merge 1 commit into
gen2brain:mainfrom
user-none:fix-audio-bitrate-index

Conversation

@user-none

Copy link
Copy Markdown

A bitrate index of 0 (free format) makes decodeHeader compute an index of -1, which then panics when it is used to look up the bitrate. Free format isn't supported, so the header is now rejected the same way as the other invalid index (15).

This branch has not been deployed

No deployments
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