ref: 53db6333493f53e6203ab8bd9bdde7cb2e03d34f
parent: 830fa866a5f27c0b62e901b556bd05a2878a504a
parent: c06a4b9df2926facc338caf2218e5f683e68d42c
author: Marco Paniconi <[email protected]>
date: Fri Jul 22 17:27:05 EDT 2016
Merge "vp9 1pass-vbr: Adjust gf setting for nonzero-lag case."
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -2185,7 +2185,10 @@
VPXMIN(15, (3 * rc->baseline_gf_interval) >> 1);
} else if (high_content) {
rc->gfu_boost = DEFAULT_GF_BOOST >> 1;
- rc->baseline_gf_interval = VPXMAX(5, rc->baseline_gf_interval >> 1);
+ if (rate_err > 3.0)
+ rc->baseline_gf_interval = VPXMAX(10, rc->baseline_gf_interval >> 1);
+ else
+ rc->baseline_gf_interval = VPXMAX(5, rc->baseline_gf_interval >> 1);
}
// Check for constraining gf_interval for up-coming scene/content changes,
// or for up-coming key frame, whichever is closer.