From eedf902dde96026057fb71e0743864d3257f4a20 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 2 Jun 2014 21:19:44 +0200 Subject: libAACenc set correct granuleLength in TNS --- libAACenc/src/aacenc_tns.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libAACenc') 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); -- cgit v1.2.3