]> granicus.if.org Git - libvpx/commitdiff
vp8: Adjust threshold to set the gf_noboost flag.
authorMarco <marpan@google.com>
Wed, 19 Oct 2016 19:54:32 +0000 (12:54 -0700)
committerMarco <marpan@google.com>
Wed, 19 Oct 2016 19:55:37 +0000 (12:55 -0700)
Change only affects 1 pass cbr, with error_resilient off.

Change-Id: Ibf254d8772fa2a8f188c9932d37b2f42362d8003

vp8/encoder/ratectrl.c

index ad670f2c8b8a6645bf58fda2aec7bd9d3baf6efe..c0de39093c43f5f8a6e1cc2946b5b91ae69123a6 100644 (file)
@@ -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;