[libav-commits] yadif: use emms_c() instead of inline assembly for emms invocations.

Ronald S. Bultje git at libav.org
Sun Jul 22 02:17:05 CEST 2012


Module: libav
Branch: master
Commit: 731fa116b4d9ebe53fbacbd3ddda6ced840e4233

Author:    Ronald S. Bultje <rsbultje at gmail.com>
Committer: Ronald S. Bultje <rsbultje at gmail.com>
Date:      Sat Jul 21 17:04:06 2012 -0700

yadif: use emms_c() instead of inline assembly for emms invocations.

---

 libavfilter/vf_yadif.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index 40cfdf5..02feeb2 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -135,9 +135,8 @@ static void filter(AVFilterContext *ctx, AVFilterBufferRef *dstpic,
             }
         }
     }
-#if HAVE_MMX
-    __asm__ volatile("emms \n\t" : : : "memory");
-#endif
+
+    emms_c();
 }
 
 static AVFilterBufferRef *get_video_buffer(AVFilterLink *link, int perms, int w, int h)



More information about the libav-commits mailing list