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

Michael Karcher git at videolan.org
Thu Feb 14 12:35:40 CET 2013


ffmpeg | branch: release/1.1 | Michael Karcher <ffmpeg at mkarcher.dialup.fu-berlin.de> | Fri Jan 25 15:03:53 2013 -0500| [901682ff78da014774b17947c5d83fdeaec27204] | committer: Reinhard Tartler

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
(cherry picked from commit 0e3afacd4d8fbe1c21e0bc16bd707809cd87380f)

Signed-off-by: Reinhard Tartler <siretart at tauware.de>

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

 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