diff --git a/libavcodec/motion-test.c b/libavcodec/motion-test.c
index ecdb62a4e141b51dda3f1bf0a48afa7f5f77f805..883dd56cc41b9047ad624b330fe44759f275e42b 100644
--- a/libavcodec/motion-test.c
+++ b/libavcodec/motion-test.c
@@ -112,7 +112,7 @@ void test_motion(const char *name,
             }
         }
     }
-    emms();
+    emms_c();
 
     /* speed test */
     ti = gettime();
@@ -125,7 +125,7 @@ void test_motion(const char *name,
             }
         }
     }
-    emms();
+    emms_c();
     dummy = d1; /* avoid optimisation */
     ti = gettime() - ti;