[libav-stable] atrac3: use correct loop variable in add_tonal_components()

Michael Karcher git at libav.org
Fri Jan 25 22:13:38 CET 2013


Module: libav
Branch: master
Commit: 0e3afacd4d8fbe1c21e0bc16bd707809cd87380f

Author:    Michael Karcher <ffmpeg at mkarcher.dialup.fu-berlin.de>
Committer: Justin Ruggles <justin.ruggles at gmail.com>
Date:      Fri Jan 25 15:03:53 2013 -0500

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

---

 libavcodec/atrac3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 libav-stable mailing list