From 0a570e826d7cb6602219236e20a15d85ab68b073 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Tue, 12 Aug 2008 00:36:36 +0000 Subject: remove mdct tmp buffer Originally committed as revision 14702 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/atrac3.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'libavcodec/atrac3.c') 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)); -- cgit v1.2.3