[FFmpeg-cvslog] atrac3: use correct loop variable in add_tonal_components()

Michael Karcher git at videolan.org
Sat Jan 26 14:36:58 CET 2013


ffmpeg | branch: master | Michael Karcher <ffmpeg at mkarcher.dialup.fu-berlin.de> | Fri Jan 25 15:03:53 2013 -0500| [0e3afacd4d8fbe1c21e0bc16bd707809cd87380f] | committer: Justin Ruggles

atrac3: use correct loop variable in add_tonal_components()

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

CC:libav-stable at libav.org

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0e3afacd4d8fbe1c21e0bc16bd707809cd87380f
---

 libavcodec/atrac3.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 312b283..a46b0b1 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;



More information about the ffmpeg-cvslog mailing list