summaryrefslogtreecommitdiffstats
path: root/libAACenc
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-06-02 21:19:44 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-06-02 21:20:46 +0200
commiteedf902dde96026057fb71e0743864d3257f4a20 (patch)
treeb567a16c2848e98f1c91055b1fd1c318ed6e75fb /libAACenc
parent81b757b95ab603b7368e19f4140661d799c9449f (diff)
downloadfdk-aac-eedf902dde96026057fb71e0743864d3257f4a20.tar.gz
fdk-aac-eedf902dde96026057fb71e0743864d3257f4a20.tar.bz2
fdk-aac-eedf902dde96026057fb71e0743864d3257f4a20.zip
libAACenc set correct granuleLength in TNS
Diffstat (limited to 'libAACenc')
-rw-r--r--libAACenc/src/aacenc_tns.cpp1
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);