diff ac3dec.c @ 10331:b5b58febcf68 libavcodec

10l: wrong operation in stereo rematrixing
author jbr
date Wed, 30 Sep 2009 21:51:02 +0000
parents 1f5c4d2ce77f
children c1c4435539e6
line wrap: on
line diff
--- a/ac3dec.c	Wed Sep 30 21:23:47 2009 +0000
+++ b/ac3dec.c	Wed Sep 30 21:51:02 2009 +0000
@@ -613,7 +613,7 @@
             bndend = FFMIN(end, ff_ac3_rematrix_band_tab[bnd+1]);
             for(; i<bndend; i++) {
                 int tmp0 = s->fixed_coeffs[1][i];
-                s->fixed_coeffs[1][i] -= s->fixed_coeffs[2][i];
+                s->fixed_coeffs[1][i] += s->fixed_coeffs[2][i];
                 s->fixed_coeffs[2][i]  = tmp0 - s->fixed_coeffs[2][i];
             }
         }