[FFmpeg-cvslog] dca: add emms_c after AV_ZERO128 macros

Hendrik Leppkes git at videolan.org
Tue Feb 2 20:12:12 CET 2016


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Tue Feb  2 20:03:11 2016 +0100| [0b1972d4096df5879038f0af776f87f41e90ebd4] | committer: Hendrik Leppkes

dca: add emms_c after AV_ZERO128 macros

AV_ZERO64/128 can use MMX on x86.

Reviewed-By: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0b1972d4096df5879038f0af776f87f41e90ebd4
---

 libavcodec/dca_core.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/dca_core.c b/libavcodec/dca_core.c
index f15b9a7..8d82be5 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)



More information about the ffmpeg-cvslog mailing list