changeset 10331:b5b58febcf68 libavcodec

10l: wrong operation in stereo rematrixing
author jbr
date Wed, 30 Sep 2009 21:51:02 +0000
parents ac0b95400577
children dfb91c11fe9c
files ac3dec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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];
             }
         }