Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. From 8689386601a7c40e8efe754e24516fdaa957ad4d Mon Sep 17 00:00:00 2001
  2. From: Hendrik Leppkes <h.leppkes@gmail.com>
  3. Date: Tue, 2 Feb 2016 20:03:11 +0100
  4. Subject: [PATCH] dca: add emms_c after AV_ZERO128 macros
  5.  
  6. AV_ZERO64/128 can use MMX on x86.
  7. ---
  8. libavcodec/dca_core.c | 4 ++++
  9. 1 file changed, 4 insertions(+)
  10.  
  11. diff --git a/libavcodec/dca_core.c b/libavcodec/dca_core.c
  12. index 94f0f3d..a69be06 100644
  13. --- a/libavcodec/dca_core.c
  14. +++ b/libavcodec/dca_core.c
  15. @@ -927,6 +927,8 @@ static void erase_adpcm_history(DCACoreDecoder *s)
  16. for (ch = 0; ch < DCA_CHANNELS; ch++)
  17. for (band = 0; band < DCA_SUBBANDS; band++)
  18. AV_ZERO128(s->subband_samples[ch][band] - DCA_ADPCM_COEFFS);
  19. +
  20. + emms_c();
  21. }
  22.  
  23. static int alloc_sample_buffer(DCACoreDecoder *s)
  24. @@ -1434,6 +1436,8 @@ static void erase_x96_adpcm_history(DCACoreDecoder *s)
  25. for (ch = 0; ch < DCA_CHANNELS; ch++)
  26. for (band = 0; band < DCA_SUBBANDS_X96; band++)
  27. AV_ZERO128(s->x96_subband_samples[ch][band] - DCA_ADPCM_COEFFS);
  28. +
  29. + emms_c();
  30. }
  31.  
  32. static int alloc_x96_sample_buffer(DCACoreDecoder *s)
  33. --
  34. 2.6.2.windows.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement