From: Marco Date: Wed, 19 Oct 2016 19:54:32 +0000 (-0700) Subject: vp8: Adjust threshold to set the gf_noboost flag. X-Git-Tag: v1.6.1~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=962496483246b547248ce5f9136f04a25bce628f;p=libvpx vp8: Adjust threshold to set the gf_noboost flag. Change only affects 1 pass cbr, with error_resilient off. Change-Id: Ibf254d8772fa2a8f188c9932d37b2f42362d8003 --- diff --git a/vp8/encoder/ratectrl.c b/vp8/encoder/ratectrl.c index ad670f2c8..c0de39093 100644 --- a/vp8/encoder/ratectrl.c +++ b/vp8/encoder/ratectrl.c @@ -1010,7 +1010,7 @@ static void calc_pframe_target_size(VP8_COMP *cpi) { // 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;