summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2008-04-21 00:46:55 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2008-04-21 00:46:55 +0000
commite7999873f521eb902a267f02caf0a7e1e72ce864 (patch)
tree82814ecad8ef8c2dc3d72111e4919717242eaeba
parentdb144ecd4270a87925dd02984f8572dd79f203d8 (diff)
downloadrockbox-e7999873f521eb902a267f02caf0a7e1e72ce864.tar.gz
rockbox-e7999873f521eb902a267f02caf0a7e1e72ce864.zip
Fix mistake in previous WMA commit. Also update comments to reflect changes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17202 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/libwma/wmadata.h2
-rw-r--r--apps/codecs/libwma/wmadeci.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/libwma/wmadata.h b/apps/codecs/libwma/wmadata.h
index 00b0a13c0d..343b6e9e92 100644
--- a/apps/codecs/libwma/wmadata.h
+++ b/apps/codecs/libwma/wmadata.h
@@ -1479,7 +1479,7 @@ const fixed64 pow_table[] =
1479*/ 1479*/
1480const fixed32 pow_10_to_yover16[] ICONST_ATTR= 1480const fixed32 pow_10_to_yover16[] ICONST_ATTR=
1481{ 1481{
1482 /*60egative indicies (-60 to -1)*/ 1482 /*60 negative indicies (-60 to -1)*/
1483 0xc, 0xd, 0x10, 0x12, 0x15, 0x18, 0x1c, 0x20, 0x25, 0x2b, 0x31, 0x39, 0x42, 1483 0xc, 0xd, 0x10, 0x12, 0x15, 0x18, 0x1c, 0x20, 0x25, 0x2b, 0x31, 0x39, 0x42,
1484 0x4c, 0x57, 0x65, 0x75, 0x87, 0x9b, 0xb3, 0xcf, 0xef, 0x114, 0x13f, 0x171, 1484 0x4c, 0x57, 0x65, 0x75, 0x87, 0x9b, 0xb3, 0xcf, 0xef, 0x114, 0x13f, 0x171,
1485 0x1aa, 0x1eb, 0x238, 0x28f, 0x2f5, 0x36a, 0x3f1, 0x48d, 0x542, 0x612, 0x703, 1485 0x1aa, 0x1eb, 0x238, 0x28f, 0x2f5, 0x36a, 0x3f1, 0x48d, 0x542, 0x612, 0x703,
diff --git a/apps/codecs/libwma/wmadeci.c b/apps/codecs/libwma/wmadeci.c
index f8fabd3325..77767d40df 100644
--- a/apps/codecs/libwma/wmadeci.c
+++ b/apps/codecs/libwma/wmadeci.c
@@ -851,8 +851,8 @@ static int decode_exp_vlc(WMADecodeContext *s, int ch)
851 fixed32 v, max_scale; 851 fixed32 v, max_scale;
852 fixed32 *q,*q_end; 852 fixed32 *q,*q_end;
853 853
854 /*accommodate the 16 negative indices */ 854 /*accommodate the 60 negative indices */
855 const fixed32 *pow_10_to_yover16_ptr = &pow_10_to_yover16[16]; 855 const fixed32 *pow_10_to_yover16_ptr = &pow_10_to_yover16[61];
856 856
857 band_ptr = s->exponent_bands[s->frame_len_bits - s->block_len_bits]; 857 band_ptr = s->exponent_bands[s->frame_len_bits - s->block_len_bits];
858 ptr = band_ptr; 858 ptr = band_ptr;