summaryrefslogtreecommitdiff
path: root/vp8/encoder/ratectrl.c
diff options
context:
space:
mode:
authorMarco <marpan@google.com>2016-10-19 12:54:32 -0700
committerMarco <marpan@google.com>2016-10-19 12:55:37 -0700
commit962496483246b547248ce5f9136f04a25bce628f (patch)
treebec5cc9c57193c502f4f47682e310bbf68bc2b5c /vp8/encoder/ratectrl.c
parentff38b8dfaed089cb36d651dcdc6c1fb74acab657 (diff)
downloadlibvpx-962496483246b547248ce5f9136f04a25bce628f.tar
libvpx-962496483246b547248ce5f9136f04a25bce628f.tar.gz
libvpx-962496483246b547248ce5f9136f04a25bce628f.tar.bz2
libvpx-962496483246b547248ce5f9136f04a25bce628f.zip
vp8: Adjust threshold to set the gf_noboost flag.
Change only affects 1 pass cbr, with error_resilient off. Change-Id: Ibf254d8772fa2a8f188c9932d37b2f42362d8003
Diffstat (limited to 'vp8/encoder/ratectrl.c')
-rw-r--r--vp8/encoder/ratectrl.c2
1 files changed, 1 insertions, 1 deletions
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;