Commit 9b61c709 authored by Marco's avatar Marco

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

For 1 pass vbr.

Change-Id: I6c1c1cca3944150140e896e175b07ed518641b9b
parent e34944ad
......@@ -1514,6 +1514,8 @@ static void adjust_gf_key_frame(VP9_COMP *cpi) {
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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment