diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2008-08-03 21:42:43 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2008-08-03 21:42:43 +0000 |
commit | 602116df9b5a5f905b45baa99d4990443ee934c9 (patch) | |
tree | b29a234860c1a6652b5724f71a458878281863e0 /libavcodec/ac3dec.c | |
parent | 021b8ae39bbd436282a6a428c1d5e65a30ef3d27 (diff) | |
download | ffmpeg-602116df9b5a5f905b45baa99d4990443ee934c9.tar.gz |
Hardcode the table for ungrouping 3 values in 5 bits. It will be reused by
the E-AC-3 decoder.
Originally committed as revision 14527 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r-- | libavcodec/ac3dec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index a0123fc45c..1f7ca8f71c 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -150,9 +150,9 @@ static av_cold void ac3_tables_init(void) reference: Section 7.3.5 Ungrouping of Mantissas */ for(i=0; i<32; i++) { /* bap=1 mantissas */ - b1_mantissas[i][0] = symmetric_dequant( i / 9 , 3); - b1_mantissas[i][1] = symmetric_dequant((i % 9) / 3, 3); - b1_mantissas[i][2] = symmetric_dequant((i % 9) % 3, 3); + b1_mantissas[i][0] = symmetric_dequant(ff_ac3_ungroup_3_in_5_bits_tab[i][0], 3); + b1_mantissas[i][1] = symmetric_dequant(ff_ac3_ungroup_3_in_5_bits_tab[i][1], 3); + b1_mantissas[i][2] = symmetric_dequant(ff_ac3_ungroup_3_in_5_bits_tab[i][2], 3); } for(i=0; i<128; i++) { /* bap=2 mantissas */ |