From 0e3afacd4d8fbe1c21e0bc16bd707809cd87380f Mon Sep 17 00:00:00 2001 From: Michael Karcher Date: Fri, 25 Jan 2013 15:03:53 -0500 Subject: [PATCH] atrac3: use correct loop variable in add_tonal_components() Signed-off-by: Michael Karcher Signed-off-by: Justin Ruggles CC:libav-stable@libav.org --- libavcodec/atrac3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;