mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-02-03 17:27:51 +01:00
Enhance TNS tuning for 8 kHz audio sampling rate
This tuning has been suggested by Fraunhofer, fixing overflows in encoding certain sequences.
This commit is contained in:
parent
1244b257ee
commit
963b189156
@ -388,7 +388,7 @@ AAC_ENCODER_ERROR FDKaacEnc_InitTnsConfiguration(INT bitRate,
|
||||
switch (granuleLength) {
|
||||
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);
|
||||
tC->lpcStartBand[LOFILT] = (blockType == SHORT_WINDOW) ? 0 : ((sampleRate <= 8000) ? 2 : ((sampleRate < 18783) ? 4 : 8));
|
||||
tC->lpcStartLine[LOFILT] = pC->sfbOffset[tC->lpcStartBand[LOFILT]];
|
||||
|
||||
i = tC->lpcStopBand;
|
||||
|
Loading…
x
Reference in New Issue
Block a user