atrac3: use correct loop variable in add_tonal_components()

Signed-off-by: Michael Karcher <ffmpeg@mkarcher.dialup.fu-berlin.de>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>

CC:libav-stable@libav.org
This commit is contained in:
Michael Karcher 2013-01-25 15:03:53 -05:00 committed by Justin Ruggles
parent ded3673d77
commit 0e3afacd4d
1 changed files with 1 additions and 1 deletions

View File

@ -517,7 +517,7 @@ static int add_tonal_components(float *spectrum, int num_components,
output = &spectrum[components[i].pos];
for (j = 0; j < components[i].num_coefs; j++)
output[i] += input[i];
output[j] += input[j];
}
return last_pos;