ref: 962496483246b547248ce5f9136f04a25bce628f
parent: ff38b8dfaed089cb36d651dcdc6c1fb74acab657
author: Marco <[email protected]>
date: Wed Oct 19 08:54:32 EDT 2016
vp8: Adjust threshold to set the gf_noboost flag. Change only affects 1 pass cbr, with error_resilient off. Change-Id: Ibf254d8772fa2a8f188c9932d37b2f42362d8003
--- a/vp8/encoder/ratectrl.c
+++ b/vp8/encoder/ratectrl.c
@@ -1010,7 +1010,7 @@
// If gf_cbr_boost_pct is small (below threshold) set the flag
// gf_noboost_onepass_cbr = 1, which forces the gf to use the same
// rate correction factor as last.
- cpi->gf_noboost_onepass_cbr = (cpi->oxcf.gf_cbr_boost_pct <= 50);
+ cpi->gf_noboost_onepass_cbr = (cpi->oxcf.gf_cbr_boost_pct <= 100);
cpi->this_frame_target =
(cpi->this_frame_target * (100 + cpi->oxcf.gf_cbr_boost_pct)) / 100;
cpi->baseline_gf_interval = cpi->gf_interval_onepass_cbr;