Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2014-03-05 16:00:23 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-03-05 16:56:06 +0400
commit93c4cd618cd2222a2f1594f19a063e2d8d955483 (patch)
tree13fbb698369b43a0e2e3822b55ab7fc14f2d4979 /libavcodec/ra144enc.c
parente3c93f1f84a339d40315987963f636222b3ed72d (diff)
ra144enc: fix use of scalarprod_int16
c3390fd56cf55259ea7665ecea6c8aeddf56e2fc 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: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ra144enc.c')
-rw-r--r--libavcodec/ra144enc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ra144enc.c b/libavcodec/ra144enc.c
index d09e281e12..cafedda8c1 100644
--- a/libavcodec/ra144enc.c
+++ b/libavcodec/ra144enc.c
@@ -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++) {