Commit 93c4cd61 authored by Christophe Gisquet's avatar Christophe Gisquet Committed by Michael Niedermayer

ra144enc: fix use of scalarprod_int16

c3390fd5 made use of the DSP function
but did not complement it with a call to emms, which is done here before
computations involving floats are performed.

Fixes ticket #3429, which affected MMX/MMXExt machines.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e3c93f1f
......@@ -376,6 +376,7 @@ static void ra144_encode_subblock(RA144Context *ractx,
ff_copy_and_dup(ractx->buffer_a, ractx->adapt_cb, cba_idx + BLOCKSIZE / 2 - 1);
m[0] = (ff_irms(&ractx->dsp, ractx->buffer_a) * rms) >> 12;
emms_c();
}
fixed_cb_search(work + LPC_ORDER, coefs, data, cba_idx, &cb1_idx, &cb2_idx);
for (i = 0; i < BLOCKSIZE; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment