From e7999873f521eb902a267f02caf0a7e1e72ce864 Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Mon, 21 Apr 2008 00:46:55 +0000 Subject: 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 --- apps/codecs/libwma/wmadata.h | 2 +- apps/codecs/libwma/wmadeci.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/codecs/libwma/wmadata.h b/apps/codecs/libwma/wmadata.h index 00b0a13..343b6e9 100644 --- a/apps/codecs/libwma/wmadata.h +++ b/apps/codecs/libwma/wmadata.h @@ -1479,7 +1479,7 @@ const fixed64 pow_table[] = */ const fixed32 pow_10_to_yover16[] ICONST_ATTR= { - /*60egative indicies (-60 to -1)*/ + /*60 negative indicies (-60 to -1)*/ 0xc, 0xd, 0x10, 0x12, 0x15, 0x18, 0x1c, 0x20, 0x25, 0x2b, 0x31, 0x39, 0x42, 0x4c, 0x57, 0x65, 0x75, 0x87, 0x9b, 0xb3, 0xcf, 0xef, 0x114, 0x13f, 0x171, 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 f8fabd3..77767d4 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) fixed32 v, max_scale; fixed32 *q,*q_end; - /*accommodate the 16 negative indices */ - const fixed32 *pow_10_to_yover16_ptr = &pow_10_to_yover16[16]; + /*accommodate the 60 negative indices */ + const fixed32 *pow_10_to_yover16_ptr = &pow_10_to_yover16[61]; band_ptr = s->exponent_bands[s->frame_len_bits - s->block_len_bits]; ptr = band_ptr; -- cgit v1.1