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
This commit is contained in:
Attila Nagy 2011-10-10 11:14:07 +03:00
parent af12c23e8e
commit c0de35b413

View 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));
}