Skip to content
Snippets Groups Projects
Commit 99a42f3f authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

ac3dec: Move center&surround mix level tables to parser.


That way all mix levels as exported by the parser
will have the same meaning.

Previously the 3bit center mix level for eac3 was
used to index in a 4 entry table leading to out of array reads.
this change removes the table and offsets the ac3 variable by 4
so it matches the meanings for eac3 except the reserved case.
The reserved case is then explicitly handled.

Idea-by: default avatarJustin Ruggles <justin.ruggles@gmail.com>
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 9ec39937
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment