shithub: libvpx

Download patch

ref: 6d6ef8eb3c814687cd937eec66b4f8a659277ace
parent: e032fc7b9ed95e87d54021ffc9a1b0f6ebda1541
author: Alex Converse <[email protected]>
date: Fri Mar 20 10:52:55 EDT 2015

Don't apply active map on key frames.

This allows applciations to be KF oblivious.

Change-Id: Ic02712eae6ad8d6b3eaec26548299d24ca0d5cc0

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -126,6 +126,11 @@
 
   assert(AM_SEGMENT_ID_ACTIVE == CR_SEGMENT_ID_BASE);
 
+  if (frame_is_intra_only(&cpi->common)) {
+    cpi->active_map.enabled = 0;
+    cpi->active_map.update = 1;
+  }
+
   if (cpi->active_map.update) {
     if (cpi->active_map.enabled) {
       for (i = 0; i < cpi->common.mi_rows * cpi->common.mi_cols; ++i)