From a5ea68447ff7b731b51a323bb16619aee9391890 Mon Sep 17 00:00:00 2001
From: Yaowu Xu <yaowu@google.com>
Date: Thu, 5 Jan 2012 11:22:06 -0800
Subject: [PATCH] Added an emms to prevent invalid stats output

In certain hardware configuration, where mmx code is enabled and
other simd (sse2/sse3) disabled, lacking of this emms caused invalid
internal stats outputs.

Change-Id: I77c61cf6e0448d3f3b8c11781aa9e42f31d231c9
---
 vp8/encoder/onyx_if.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index fe8f1ab785..b60d996a8d 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -2670,6 +2670,8 @@ void vp8_remove_compressor(VP8_PTR *ptr)
 
 #if CONFIG_INTERNAL_STATS
 
+        vp8_clear_system_state();
+
         if (cpi->pass != 1)
         {
             FILE *f = fopen("opsnr.stt", "a");
-- 
GitLab