shithub: libvpx

Download patch

ref: 181988d37273bd31708718a51e727ea1048d7c98
parent: c1bfa6a84647caf16a9191bb58ab90599ddd9a80
parent: 9b61c709c4730ae841d8e063d2a656198b1d0a65
author: Marco Paniconi <[email protected]>
date: Fri Jun 10 18:49:48 EDT 2016

Merge "vp9: Put lower limit on frames_to_key adjustment to gf interval."

--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -1514,6 +1514,8 @@
   if ((rc->frames_to_key <= 7 * rc->baseline_gf_interval >> 2) &&
       (rc->frames_to_key > rc->baseline_gf_interval)) {
     rc->baseline_gf_interval = rc->frames_to_key >> 1;
+    if (rc->baseline_gf_interval < 5)
+      rc->baseline_gf_interval = rc->frames_to_key;
     rc->constrained_gf_group = 1;
   } else {
     // Reset since frames_till_gf_update_due must be <= frames_to_key.