summaryrefslogtreecommitdiff
path: root/libavcodec/atrac3.c
diff options
context:
space:
mode:
authorLoren Merritt <lorenm@u.washington.edu>2008-08-12 00:36:36 +0000
committerLoren Merritt <lorenm@u.washington.edu>2008-08-12 00:36:36 +0000
commit0a570e826d7cb6602219236e20a15d85ab68b073 (patch)
tree6ac326a85a91f45414a4ccbf19f1c72cc757cf55 /libavcodec/atrac3.c
parente8dd7b0c9a3d61a2a5be7e763e5bdde486cdfc29 (diff)
remove mdct tmp buffer
Originally committed as revision 14702 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/atrac3.c')
-rw-r--r--libavcodec/atrac3.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 9a03bbe207..a41329f991 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -108,7 +108,6 @@ typedef struct {
float outSamples[2048];
uint8_t* decoded_bytes_buffer;
float tempBuf[1070];
- DECLARE_ALIGNED_16(float,mdct_tmp[512]);
//@}
//@{
/** extradata */
@@ -189,10 +188,9 @@ static void iqmf (float *inlo, float *inhi, unsigned int nIn, float *pOut, float
* @param pInput float input
* @param pOutput float output
* @param odd_band 1 if the band is an odd band
- * @param mdct_tmp aligned temporary buffer for the mdct
*/
-static void IMLT(float *pInput, float *pOutput, int odd_band, float* mdct_tmp)
+static void IMLT(float *pInput, float *pOutput, int odd_band)
{
int i;
@@ -210,7 +208,7 @@ static void IMLT(float *pInput, float *pOutput, int odd_band, float* mdct_tmp)
FFSWAP(float, pInput[i], pInput[255-i]);
}
- mdct_ctx.fft.imdct_calc(&mdct_ctx,pOutput,pInput,mdct_tmp);
+ mdct_ctx.fft.imdct_calc(&mdct_ctx,pOutput,pInput);
/* Perform windowing on the output. */
dsp.vector_fmul(pOutput,mdct_window,512);
@@ -757,7 +755,7 @@ static int decodeChannelSoundUnit (ATRAC3Context *q, GetBitContext *gb, channel_
for (band=0; band<4; band++) {
/* Perform the IMDCT step without overlapping. */
if (band <= numBands) {
- IMLT(&(pSnd->spectrum[band*256]), pSnd->IMDCT_buf, band&1,q->mdct_tmp);
+ IMLT(&(pSnd->spectrum[band*256]), pSnd->IMDCT_buf, band&1);
} else
memset(pSnd->IMDCT_buf, 0, 512 * sizeof(float));