ac3dec: Move center and surround mix level tables to the parser.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Feb 2012 03:27:27 +0000 (22:27 -0500)
committerAlex Converse <alex.converse@gmail.com>
Fri, 10 Feb 2012 00:36:02 +0000 (16:36 -0800)
commite6d9fa66f12cf5a3024c9bc7c4c608f7fc59207e
treef31cc3a09c130d6ef237450eadc8b88629125bb2
parent7b05025856706ccc5da2e43f4f05c319907b3b16
ac3dec: Move center and surround mix level tables to the parser.

That way all mix levels as exported by avpriv_ac3_parse_header()
will have the same meaning.

Previously the 3-bit center mix level for E-AC-3 was used to index in a
4-entry table, leading to out-of-array reads.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Signed-off-by: Alex Converse <alex.converse@gmail.com>
libavcodec/ac3_parser.c
libavcodec/ac3dec.c