summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2011-07-28 14:12:33 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2011-07-28 14:12:33 +0000
commit55c77e229e304bdbb06a1373a6dbc1e5c4ba64a4 (patch)
tree3159ed27d459e9b601846a84f76b8766a0cf5472 /apps
parent969903b5fe3bc852b7bbda766bf1123a63bea5c1 (diff)
downloadrockbox-55c77e229e304bdbb06a1373a6dbc1e5c4ba64a4.zip
rockbox-55c77e229e304bdbb06a1373a6dbc1e5c4ba64a4.tar.gz
rockbox-55c77e229e304bdbb06a1373a6dbc1e5c4ba64a4.tar.bz2
rockbox-55c77e229e304bdbb06a1373a6dbc1e5c4ba64a4.tar.xz
Fix a bug introduced in r27463 that caused the line spectral pair look up tables to overwrite the noise coding VLC tables. Should fix decoding of files that have both noise coding and line spectral pairs, which are usually very low bitrate WMAs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30220 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs/libwma/wmadeci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libwma/wmadeci.c b/apps/codecs/libwma/wmadeci.c
index d63a764..d7a836d 100644
--- a/apps/codecs/libwma/wmadeci.c
+++ b/apps/codecs/libwma/wmadeci.c
@@ -621,7 +621,7 @@ static void wma_lsp_to_curve_init(WMADecodeContext *s, int frame_len)
int ix = 0;
s->lsp_pow_m_table1 = &vlcbuf3[0];
- s->lsp_pow_m_table2 = &vlcbuf3[VLCBUF3SIZE];
+ s->lsp_pow_m_table2 = &vlcbuf3[1<<LSP_POW_BITS];
/*double check this later*/
for(i=(1 << LSP_POW_BITS) - 1;i>=0;i--)