summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-09-30 21:51:02 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-09-30 21:51:02 +0000
commit3fdccca0912fe35104ac60954aff82a9c38cd2b2 (patch)
tree7126d2e02a3baac8d53783bbe1c053a59f48239a /libavcodec/ac3dec.c
parent49214f61a5071a3e5f12c3d13f13a3d8cfdbb5bb (diff)
10l: wrong operation in stereo rematrixing
Originally committed as revision 20106 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r--libavcodec/ac3dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 91b82cfa7d..650468bfd6 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -613,7 +613,7 @@ static void do_rematrixing(AC3DecodeContext *s)
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];
}
}