]> git.sesse.net Git - ffmpeg/commitdiff
Fix atrac3 decoder broken in e55d53905f34f8e8747f6d321e9a695dc02ebb2f
authorMichael Karcher <ffmpeg@mkarcher.dialup.fu-berlin.de>
Fri, 25 Jan 2013 19:44:50 +0000 (20:44 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Jan 2013 23:05:57 +0000 (00:05 +0100)
Signed-off-by: Michael Karcher <ffmpeg@mkarcher.dialup.fu-berlin.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/atrac3.c

index 56efa194669303290796a4b5885cdbfe1ce631c2..84c5c11fca8e06fa4d70cb2643c8334012fae7ad 100644 (file)
@@ -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;