shithub: libvpx

Download patch

ref: fe47e829298a7f7c44749164a480ff7dcdf07ea5
parent: 836d383de274dc593b37a3c064087b4b2d0a33ca
author: Jingning Han <[email protected]>
date: Wed Aug 22 05:36:12 EDT 2018

Set refresh_frame_context flag off in show_existing_frame mode

Match the decoder expectation, set off refresh_fame_context flag
in show_existing_frame mode.

Change-Id: I5258635b715ea04f41a4a087178709f707449b71

--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -1421,9 +1421,11 @@
 }
 
 void vp9_configure_buffer_updates(VP9_COMP *cpi, int gf_group_index) {
+  VP9_COMMON *cm = &cpi->common;
   TWO_PASS *const twopass = &cpi->twopass;
 
   cpi->rc.is_src_frame_alt_ref = 0;
+  cm->show_existing_frame = 0;
   switch (twopass->gf_group.update_type[gf_group_index]) {
     case KF_UPDATE:
       cpi->refresh_last_frame = 1;
@@ -1451,6 +1453,8 @@
       cpi->refresh_golden_frame = 0;
       cpi->refresh_alt_ref_frame = 0;
       cpi->rc.is_src_frame_alt_ref = 1;
+      cm->show_existing_frame = 1;
+      cm->refresh_frame_context = 0;
       break;
     default:
       assert(twopass->gf_group.update_type[gf_group_index] == ARF_UPDATE);