shithub: libvpx

Download patch

ref: 16f50c34b37402d691b8137cb57fd09972292945
parent: a18946fbed5798f7f1cda5857669a9861afae960
parent: 134072dbd37e0adac154fecf0a5434d538d5d096
author: Jingning Han <jingning@google.com>
date: Tue Nov 13 18:13:14 EST 2018

Merge "Rescale arf bit budget calculation"

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2301,8 +2301,9 @@
 
     for (idx = 2; idx < MAX_ARF_LAYERS; ++idx) {
       if (arf_depth_boost[idx] == 0) break;
-      arf_depth_bits[idx] = calculate_boost_bits(
-          rc->baseline_gf_interval, arf_depth_boost[idx], total_group_bits);
+      arf_depth_bits[idx] =
+          calculate_boost_bits(rc->baseline_gf_interval - total_arfs,
+                               arf_depth_boost[idx], total_group_bits);
 
       total_group_bits -= arf_depth_bits[idx];
       total_arfs += arf_depth_count[idx];