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
This commit is contained in:
parent
45ebc5643a
commit
1620d1fd03
1 changed files with 1 additions and 1 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue