diff options
| author | Michael Giacomelli <giac2000@hotmail.com> | 2008-10-14 01:41:26 +0000 |
|---|---|---|
| committer | Michael Giacomelli <giac2000@hotmail.com> | 2008-10-14 01:41:26 +0000 |
| commit | 1620d1fd0328b02664036900c990883984ca94fa (patch) | |
| tree | 8b03b6e8103d0196af0046a0d70ef5c5844e3a8f /apps/codecs | |
| parent | 45ebc5643a8b66d77b49524d22cee0a4357cef14 (diff) | |
| download | rockbox-1620d1fd0328b02664036900c990883984ca94fa.zip rockbox-1620d1fd0328b02664036900c990883984ca94fa.tar.gz rockbox-1620d1fd0328b02664036900c990883984ca94fa.tar.bz2 rockbox-1620d1fd0328b02664036900c990883984ca94fa.tar.xz | |
Correct poor assumption on my part that WMA frames are 2048 samples long. Fixed problems with sample rates < 44.1khz. Fixes FS#9242 and FS#9439.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18805 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
| -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 5677ac6..d362c6d 100644 --- a/apps/codecs/libwma/wmadeci.c +++ b/apps/codecs/libwma/wmadeci.c @@ -1388,7 +1388,7 @@ static int wma_decode_block(WMADecodeContext *s, int32_t *scratch_buffer) n4 = s->block_len >>1; /*faster IMDCT from Vorbis*/ - mdct_backward( (1 << (12-bsize)), (int32_t*)(*(s->coefs))[ch], (int32_t*)scratch_buffer); + mdct_backward( (1 << (s->block_len_bits+1)), (int32_t*)(*(s->coefs))[ch], (int32_t*)scratch_buffer); /*slower but more easily understood IMDCT from FFMPEG*/ //ff_imdct_calc(&s->mdct_ctx[bsize], |