shithub: libvpx

Download patch

ref: c0de35b413356d83887bcc3b9e5cc1e7e5807ec1
parent: af12c23e8ee6931c364f417d510b48de6e1d8530
author: Attila Nagy <attilanagy@google.com>
date: Mon Oct 10 07:14:07 EDT 2011

enc: save entropy probs only when needed for refresh

Previous entropy probs need to be saved (and restored) only when
current updates are not propagated.

Change-Id: Ie6ee0543066e30874e56258be0a6b7d2dd2fdb2b

--- a/vp8/encoder/bitstream.c
+++ b/vp8/encoder/bitstream.c
@@ -1784,9 +1784,9 @@
 
     vp8_clear_system_state();  //__asm emms;
 
-    //************************************************
-    // save a copy for later refresh
+    if (pc->refresh_entropy_probs == 0)
     {
+        // save a copy for later refresh
         vpx_memcpy(&cpi->common.lfc, &cpi->common.fc, sizeof(cpi->common.fc));
     }
 
--