[FFmpeg-devel,12/13] avutil/tests/pixelutils: Add emms_c() after SIMD use before calling libc (malloc/free) code

Submitted by Michael Niedermayer on Oct. 22, 2016, 7:02 p.m.

Details

Message ID 20161022190211.16526-12-michael@niedermayer.cc
State New
Headers show

Commit Message

Michael Niedermayer Oct. 22, 2016, 7:02 p.m.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavutil/tests/pixelutils.c | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/libavutil/tests/pixelutils.c b/libavutil/tests/pixelutils.c
index ec4dc8f..fbb66e5 100644
--- a/libavutil/tests/pixelutils.c
+++ b/libavutil/tests/pixelutils.c
@@ -67,6 +67,8 @@  static int run_test(const char *test,
                 ret = r;
         }
     }
+    emms_c();
+
     return ret;
 }
 
@@ -140,6 +142,7 @@  int main(void)
             RANDOM_INIT(buf1, size1);
             RANDOM_INIT(buf2, size2);
             ret = run_single_test("small", buf1, 1<<i, buf2, 1<<i, align, i);
+            emms_c();
             if (ret < 0)
                 goto end;
         }