shithub: libvpx

Download patch

ref: 248f816a34e42759251a4f047ae20f7322ba9c2a
parent: d3085ae12b3bca5854280932f88c0f4fc627109c
parent: fe471693acbf0d5bb61018b38ea11bdc342eec08
author: Jingning Han <jingning@google.com>
date: Wed Oct 24 20:01:46 EDT 2018

Merge "Reset frame udpate flags after qp estimate in tpl"

--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -1485,6 +1485,8 @@
   int bottom_index, top_index;
   int idx;
   const int gf_index = cpi->twopass.gf_group.index;
+  const int is_src_frame_alt_ref = cpi->rc.is_src_frame_alt_ref;
+  const int refresh_frame_context = cpi->common.refresh_frame_context;
 
   for (idx = 1; idx <= gop_length; ++idx) {
     TplDepFrame *tpl_frame = &cpi->tpl_stats[idx];
@@ -1498,6 +1500,8 @@
   }
   // Reset the actual index and frame update
   cpi->twopass.gf_group.index = gf_index;
+  cpi->rc.is_src_frame_alt_ref = is_src_frame_alt_ref;
+  cpi->common.refresh_frame_context = refresh_frame_context;
   vp9_configure_buffer_updates(cpi, gf_index);
 }