[FFmpeg-cvslog] Fix atrac3 decoder broken in e55d53905f34f8e8747f6d321e9a695dc02ebb2f

Michael Karcher git at videolan.org
Sat Jan 26 03:43:16 CET 2013


ffmpeg | branch: release/1.1 | Michael Karcher <ffmpeg at mkarcher.dialup.fu-berlin.de> | Fri Jan 25 20:44:50 2013 +0100| [302094e1d2ea1cb59ca60d194452af9be55f43af] | committer: Carl Eugen Hoyos

Fix atrac3 decoder broken in e55d53905f34f8e8747f6d321e9a695dc02ebb2f

Signed-off-by: Michael Karcher <ffmpeg at mkarcher.dialup.fu-berlin.de>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit dcbb920f1587d1fce777aae947a49304665436b5)

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

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

diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 56efa19..84c5c11 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -518,7 +518,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