diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2011-07-28 14:12:33 +0000 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2011-07-28 14:12:33 +0000 |
commit | 55c77e229e304bdbb06a1373a6dbc1e5c4ba64a4 (patch) | |
tree | 3159ed27d459e9b601846a84f76b8766a0cf5472 | |
parent | 969903b5fe3bc852b7bbda766bf1123a63bea5c1 (diff) | |
download | rockbox-55c77e229e304bdbb06a1373a6dbc1e5c4ba64a4.tar.gz rockbox-55c77e229e304bdbb06a1373a6dbc1e5c4ba64a4.zip |
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
-rw-r--r-- | apps/codecs/libwma/wmadeci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libwma/wmadeci.c b/apps/codecs/libwma/wmadeci.c index d63a7641c9..d7a836dd97 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) | |||
621 | int ix = 0; | 621 | int ix = 0; |
622 | 622 | ||
623 | s->lsp_pow_m_table1 = &vlcbuf3[0]; | 623 | s->lsp_pow_m_table1 = &vlcbuf3[0]; |
624 | s->lsp_pow_m_table2 = &vlcbuf3[VLCBUF3SIZE]; | 624 | s->lsp_pow_m_table2 = &vlcbuf3[1<<LSP_POW_BITS]; |
625 | 625 | ||
626 | /*double check this later*/ | 626 | /*double check this later*/ |
627 | for(i=(1 << LSP_POW_BITS) - 1;i>=0;i--) | 627 | for(i=(1 << LSP_POW_BITS) - 1;i>=0;i--) |