summaryrefslogtreecommitdiffstats
path: root/libAACdec/src
diff options
context:
space:
mode:
authorJohn Grossman <johngro@google.com>2012-09-12 15:11:17 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-12 15:11:17 -0700
commited8b5a747e97c9b8b029ba6485e33f3aad081652 (patch)
treecfcb1c0a5896cf8edea6cdbb2a2e0f5bac26ebd6 /libAACdec/src
parent1043598349977d71cf19cc9db0d09d3c0cbfb2f9 (diff)
parent34ce250e9075adda4fb8a797c7f47dc049476e8b (diff)
downloadfdk-aac-ed8b5a747e97c9b8b029ba6485e33f3aad081652.tar.gz
fdk-aac-ed8b5a747e97c9b8b029ba6485e33f3aad081652.tar.bz2
fdk-aac-ed8b5a747e97c9b8b029ba6485e33f3aad081652.zip
Merge "Don't zero out spec coeffs before doing the final IMDCT." into jb-mr1-dev
Diffstat (limited to 'libAACdec/src')
-rw-r--r--libAACdec/src/aacdecoder.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/libAACdec/src/aacdecoder.cpp b/libAACdec/src/aacdecoder.cpp
index 4cf1391..2843e9f 100644
--- a/libAACdec/src/aacdecoder.cpp
+++ b/libAACdec/src/aacdecoder.cpp
@@ -1646,10 +1646,6 @@ LINKSPEC_CPP AAC_DECODER_ERROR CAacDecoder_DecodeFrame(
self->sbrEnabled
);
- if ( flags&AACDEC_FLUSH ) {
- FDKmemclear(pAacDecoderChannelInfo->pSpectralCoefficient, sizeof(FIXP_DBL)*self->streamInfo.aacSamplesPerFrame);
- }
-
switch (pAacDecoderChannelInfo->renderMode)
{
case AACDEC_RENDER_IMDCT:
@@ -1677,6 +1673,7 @@ LINKSPEC_CPP AAC_DECODER_ERROR CAacDecoder_DecodeFrame(
break;
}
if ( flags&AACDEC_FLUSH ) {
+ FDKmemclear(pAacDecoderChannelInfo->pSpectralCoefficient, sizeof(FIXP_DBL)*self->streamInfo.aacSamplesPerFrame);
FDKmemclear(self->pAacDecoderStaticChannelInfo[c]->pOverlapBuffer, OverlapBufferSize*sizeof(FIXP_DBL));
}
}