diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-06-02 21:19:44 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-06-02 21:20:46 +0200 |
commit | eedf902dde96026057fb71e0743864d3257f4a20 (patch) | |
tree | b567a16c2848e98f1c91055b1fd1c318ed6e75fb | |
parent | 81b757b95ab603b7368e19f4140661d799c9449f (diff) | |
download | ODR-AudioEnc-eedf902dde96026057fb71e0743864d3257f4a20.tar.gz ODR-AudioEnc-eedf902dde96026057fb71e0743864d3257f4a20.tar.bz2 ODR-AudioEnc-eedf902dde96026057fb71e0743864d3257f4a20.zip |
libAACenc set correct granuleLength in TNS
-rw-r--r-- | libAACenc/src/aacenc_tns.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libAACenc/src/aacenc_tns.cpp b/libAACenc/src/aacenc_tns.cpp index 10586f5..eca892e 100644 --- a/libAACenc/src/aacenc_tns.cpp +++ b/libAACenc/src/aacenc_tns.cpp @@ -418,6 +418,7 @@ AAC_ENCODER_ERROR FDKaacEnc_InitTnsConfiguration(INT bitRate, tC->lpcStopLine = pC->sfbOffset[tC->lpcStopBand]; switch (granuleLength) { + case 960: case 1024: /* TNS start line: skip lower MDCT lines to prevent artifacts due to filter mismatch */ tC->lpcStartBand[LOFILT] = (blockType == SHORT_WINDOW) ? 0 : ((sampleRate < 18783) ? 4 : 8); |