enc: save entropy probs only when needed for refresh
authorAttila Nagy <attilanagy@google.com>
Mon, 10 Oct 2011 08:14:07 +0000 (11:14 +0300)
committerAttila Nagy <attilanagy@google.com>
Mon, 10 Oct 2011 10:44:54 +0000 (13:44 +0300)
Previous entropy probs need to be saved (and restored) only when
current updates are not propagated.

Change-Id: Ie6ee0543066e30874e56258be0a6b7d2dd2fdb2b

vp8/encoder/bitstream.c

index cea8e12..a4d05fb 100644 (file)
@@ -1784,9 +1784,9 @@ void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest, unsigned long *size)
 
     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));
     }