forked from len0rd/rockbox
Revert r22339 as it causes immediate stack overflow on target, at least on coldfire.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22341 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3b81dd4749
commit
aa24b677e0
2 changed files with 5 additions and 5 deletions
|
|
@ -668,15 +668,14 @@ static int decodeChannelSoundUnit (GetBitContext *gb, channel_unit *pSnd, int32_
|
||||||
|
|
||||||
/* Reconstruct time domain samples. */
|
/* Reconstruct time domain samples. */
|
||||||
for (band=0; band<4; band++) {
|
for (band=0; band<4; band++) {
|
||||||
int32_t IMDCT_buf[1024];
|
|
||||||
/* Perform the IMDCT step without overlapping. */
|
/* Perform the IMDCT step without overlapping. */
|
||||||
if (band <= numBands) {
|
if (band <= numBands) {
|
||||||
IMLT(&(pSnd->spectrum[band*256]), IMDCT_buf, band&1);
|
IMLT(&(pSnd->spectrum[band*256]), pSnd->IMDCT_buf, band&1);
|
||||||
} else
|
} else
|
||||||
memset(IMDCT_buf, 0, 512 * sizeof(int32_t));
|
memset(pSnd->IMDCT_buf, 0, 512 * sizeof(int32_t));
|
||||||
|
|
||||||
/* gain compensation and overlapping */
|
/* gain compensation and overlapping */
|
||||||
gainCompensateAndOverlap (IMDCT_buf, &(pSnd->prevFrame[band*256]), &(pOut[band*256]),
|
gainCompensateAndOverlap (pSnd->IMDCT_buf, &(pSnd->prevFrame[band*256]), &(pOut[band*256]),
|
||||||
&((pSnd->gainBlock[1 - (pSnd->gcBlkSwitch)]).gBlock[band]),
|
&((pSnd->gainBlock[1 - (pSnd->gcBlkSwitch)]).gBlock[band]),
|
||||||
&((pSnd->gainBlock[pSnd->gcBlkSwitch]).gBlock[band]));
|
&((pSnd->gainBlock[pSnd->gcBlkSwitch]).gBlock[band]));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ typedef struct {
|
||||||
gain_block gainBlock[2];
|
gain_block gainBlock[2];
|
||||||
|
|
||||||
int32_t spectrum[1024] __attribute__((aligned(16)));
|
int32_t spectrum[1024] __attribute__((aligned(16)));
|
||||||
|
int32_t IMDCT_buf[1024] __attribute__((aligned(16)));
|
||||||
|
|
||||||
int32_t delayBuf1[46]; ///<qmf delay buffers
|
int32_t delayBuf1[46]; ///<qmf delay buffers
|
||||||
int32_t delayBuf2[46];
|
int32_t delayBuf2[46];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue