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
(cherry picked from commit 0e3afacd4d
)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
This commit is contained in:

committed by
Reinhard Tartler

parent
5af78cc98d
commit
901682ff78
@@ -517,7 +517,7 @@ static int add_tonal_components(float *spectrum, int num_components,
|
|||||||
output = &spectrum[components[i].pos];
|
output = &spectrum[components[i].pos];
|
||||||
|
|
||||||
for (j = 0; j < components[i].num_coefs; j++)
|
for (j = 0; j < components[i].num_coefs; j++)
|
||||||
output[i] += input[i];
|
output[j] += input[j];
|
||||||
}
|
}
|
||||||
|
|
||||||
return last_pos;
|
return last_pos;
|
||||||
|
Reference in New Issue
Block a user