aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/atrac3.c
diff options
context:
space:
mode:
authorMichael Karcher <ffmpeg@mkarcher.dialup.fu-berlin.de>2013-01-25 15:03:53 -0500
committerReinhard Tartler <siretart@tauware.de>2013-02-07 07:18:56 +0100
commit901682ff78da014774b17947c5d83fdeaec27204 (patch)
treeecf4b167569affee9c358f9b95eb51bb730be007 /libavcodec/atrac3.c
parent5af78cc98d807f3b43510410dad46e1840c5c99f (diff)
downloadffmpeg-901682ff78da014774b17947c5d83fdeaec27204.tar.gz
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 0e3afacd4d8fbe1c21e0bc16bd707809cd87380f) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Diffstat (limited to 'libavcodec/atrac3.c')
-rw-r--r--libavcodec/atrac3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 312b283883..a46b0b1277 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -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;