summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec_data.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-05-21 00:15:03 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-05-21 00:15:03 +0000
commit9907c7804aa2f0e3e2a2cfba5a8874432ea2d5e3 (patch)
treefc9ac571b6b47c817fafd3b63f39d2490b2fcee2 /libavcodec/ac3dec_data.c
parentae04de316f03d038b21078c803007cb8f955777a (diff)
downloadffmpeg-9907c7804aa2f0e3e2a2cfba5a8874432ea2d5e3.tar.gz
eac3dec: make GAQ dequantization 24-bit
Originally committed as revision 18888 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3dec_data.c')
-rw-r--r--libavcodec/ac3dec_data.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/libavcodec/ac3dec_data.c b/libavcodec/ac3dec_data.c
index 2a3719ea07..b9f98f904e 100644
--- a/libavcodec/ac3dec_data.c
+++ b/libavcodec/ac3dec_data.c
@@ -87,19 +87,18 @@ const int16_t ff_eac3_gaq_remap_2_4_a[9][2] = {
/**
* Table E3.6, Gk=2 & Gk=4, B
* Large mantissa inverse quantization, negative mantissa remapping offsets
- * Table values from the spec are right-shifted by 8 to simplify calculations.
* ff_eac3_gaq_remap_3_4_b[hebap-8][Gk=2,4]
*/
-const int8_t ff_eac3_gaq_remap_2_4_b[9][2] = {
- { -22, -5 },
- { -46, -20 },
- { -56, -26 },
- { -60, -29 },
- { -62, -31 },
- { -63, -32 },
- { -64, -32 },
- { -64, -32 },
- { -64, -32 },
+const int16_t ff_eac3_gaq_remap_2_4_b[9][2] = {
+ { -5461, -1170 },
+ { -11703, -4915 },
+ { -14199, -6606 },
+ { -15327, -7412 },
+ { -15864, -7805 },
+ { -16126, -7999 },
+ { -16255, -8096 },
+ { -16320, -8144 },
+ { -16352, -8168 }
};
static const int16_t vq_hebap1[4][6] = {