summaryrefslogtreecommitdiff
path: root/libavcodec/dca_core.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2016-02-02 20:03:11 +0100
committerHendrik Leppkes <h.leppkes@gmail.com>2016-02-02 20:06:13 +0100
commit0b1972d4096df5879038f0af776f87f41e90ebd4 (patch)
tree3975170c4156738d97a487129860293676a1ed32 /libavcodec/dca_core.c
parent084ab31049535fbafcc283ee10b60c91286f52d1 (diff)
dca: add emms_c after AV_ZERO128 macros
AV_ZERO64/128 can use MMX on x86. Reviewed-By: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/dca_core.c')
-rw-r--r--libavcodec/dca_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/dca_core.c b/libavcodec/dca_core.c
index f15b9a7125..8d82be52eb 100644
--- a/libavcodec/dca_core.c
+++ b/libavcodec/dca_core.c
@@ -927,6 +927,8 @@ static void erase_adpcm_history(DCACoreDecoder *s)
for (ch = 0; ch < DCA_CHANNELS; ch++)
for (band = 0; band < DCA_SUBBANDS; band++)
AV_ZERO128(s->subband_samples[ch][band] - DCA_ADPCM_COEFFS);
+
+ emms_c();
}
static int alloc_sample_buffer(DCACoreDecoder *s)
@@ -1434,6 +1436,8 @@ static void erase_x96_adpcm_history(DCACoreDecoder *s)
for (ch = 0; ch < DCA_CHANNELS; ch++)
for (band = 0; band < DCA_SUBBANDS_X96; band++)
AV_ZERO128(s->x96_subband_samples[ch][band] - DCA_ADPCM_COEFFS);
+
+ emms_c();
}
static int alloc_x96_sample_buffer(DCACoreDecoder *s)