shithub: libvpx

Download patch

ref: 5dab9c6ce9096a1686659bc6e6d0a52294cd2af1
parent: c98308a40d67231c67888709c93d114e3ce079a1
parent: e70fa980b87309553722700310ffee1e0c5bce40
author: Paul Wilkins <paulwilkins@google.com>
date: Mon Jul 23 09:50:44 EDT 2018

Merge "Limit Max GF boost for slide shows"

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2714,6 +2714,7 @@
 #define ARF_DECAY_BREAKOUT 0.10
 #define ARF_ABS_ZOOM_THRESH 4.0
 
+#define MAX_GF_BOOST 5400
 static void define_gf_group(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) {
   VP9_COMMON *const cm = &cpi->common;
   RATE_CONTROL *const rc = &cpi->rc;
@@ -2932,7 +2933,7 @@
             ? 1
             : 0;
   } else {
-    rc->gfu_boost = calc_arf_boost(cpi, 0, (i - 1));
+    rc->gfu_boost = VPXMIN(MAX_GF_BOOST, calc_arf_boost(cpi, 0, (i - 1)));
     rc->source_alt_ref_pending = 0;
   }