1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00
Originally committed as revision 14877 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Robert Swain 2008-08-21 10:23:55 +00:00
parent c5377f575c
commit 4b0044b750

View File

@ -1129,15 +1129,15 @@ static void apply_tns(float coef[1024], TemporalNoiseShaping * tns, IndividualCh
* FIXME: This duplicates the functionality of some double code in lpc.c.
*/
for (m = 0; m < order; m++) {
float tmp;
lpc[m] = tns->coef[w][filt][m];
for (i = 0; i < m/2; i++) {
tmp = lpc[i];
lpc[i] += lpc[m] * lpc[m-1-i];
lpc[m-1-i] += lpc[m] * tmp;
}
if(m & 1)
lpc[i] += lpc[m] * lpc[i];
float tmp;
lpc[m] = tns->coef[w][filt][m];
for (i = 0; i < m/2; i++) {
tmp = lpc[i];
lpc[i] += lpc[m] * lpc[m-1-i];
lpc[m-1-i] += lpc[m] * tmp;
}
if(m & 1)
lpc[i] += lpc[m] * lpc[i];
}
start = ics->swb_offset[FFMIN(bottom, mmm)];