10l: wrong operation in stereo rematrixing

Originally committed as revision 20106 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Justin Ruggles 2009-09-30 21:51:02 +00:00
parent 49214f61a5
commit 3fdccca091

View File

@ -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];
}
}