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(; ifixed_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]; } }