mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-02-17 19:50:35 +01:00
Snap for 4434599 from bb75c081ed53b4f01ef202da3799a92705acfde0 to pi-release
Change-Id: Ie027781ff119fe215f492bacc830febaf156d523
This commit is contained in:
commit
589008f512
@ -293,7 +293,7 @@ void lppTransposer (HANDLE_SBR_LPP_TRANS hLppTrans, /*!< Handle of lpp transp
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* init bwIndex for each patch */
|
/* init bwIndex for each patch */
|
||||||
FDKmemclear(bwIndex, pSettings->noOfPatches*sizeof(INT));
|
FDKmemclear(bwIndex, MAX_NUM_PATCHES*sizeof(INT));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Calc common low band scale factor
|
Calc common low band scale factor
|
||||||
@ -621,9 +621,9 @@ void lppTransposer (HANDLE_SBR_LPP_TRANS hLppTrans, /*!< Handle of lpp transp
|
|||||||
FDK_ASSERT( hiBand < (64) );
|
FDK_ASSERT( hiBand < (64) );
|
||||||
|
|
||||||
/* bwIndex[patch] is already initialized with value from previous band inside this patch */
|
/* bwIndex[patch] is already initialized with value from previous band inside this patch */
|
||||||
while (hiBand >= pSettings->bwBorders[bwIndex[patch]])
|
while (hiBand >= pSettings->bwBorders[bwIndex[patch]] && bwIndex[patch] < MAX_NUM_PATCHES-1) {
|
||||||
bwIndex[patch]++;
|
bwIndex[patch]++;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Filter Step 2: add the left slope with the current filter to the buffer
|
Filter Step 2: add the left slope with the current filter to the buffer
|
||||||
@ -962,6 +962,10 @@ resetLppTransposer (HANDLE_SBR_LPP_TRANS hLppTrans, /*!< Handle of lpp transpos
|
|||||||
for(i = 0 ; i < noNoiseBands; i++){
|
for(i = 0 ; i < noNoiseBands; i++){
|
||||||
pSettings->bwBorders[i] = noiseBandTable[i+1];
|
pSettings->bwBorders[i] = noiseBandTable[i+1];
|
||||||
}
|
}
|
||||||
|
for (;i < MAX_NUM_NOISE_VALUES; i++) {
|
||||||
|
pSettings->bwBorders[i] = 255;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Choose whitening factors
|
* Choose whitening factors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user