vp9: Fix condition for limiting ARF 1 pass vbr.
Fix the setting to frames_till_gf_update_due, and adjust the limit value. Only affects when USE_ALTREF_FOR_ONE_PASS is enabled. Neutral change to metrics and speed for ytlive. Change-Id: I266d9a00b36221bc8602fa2746d4e8a8f7d4dfae
This commit is contained in:
		@@ -2220,9 +2220,10 @@ static void adjust_gf_boost_lag_one_pass_vbr(VP9_COMP *cpi,
 | 
				
			|||||||
        rc->source_alt_ref_pending = 1;
 | 
					        rc->source_alt_ref_pending = 1;
 | 
				
			||||||
        rc->alt_ref_gf_group = 1;
 | 
					        rc->alt_ref_gf_group = 1;
 | 
				
			||||||
        // If alt-ref is used for this gf group, limit the interval.
 | 
					        // If alt-ref is used for this gf group, limit the interval.
 | 
				
			||||||
        if (rc->baseline_gf_interval > 10 &&
 | 
					        if (rc->baseline_gf_interval > 12) {
 | 
				
			||||||
            rc->baseline_gf_interval < rc->frames_to_key)
 | 
					          rc->baseline_gf_interval = 12;
 | 
				
			||||||
          rc->baseline_gf_interval = 10;
 | 
					          rc->frames_till_gf_update_due = rc->baseline_gf_interval;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user