]> granicus.if.org Git - libvpx/commitdiff
vp9: Remove this_key_frame_forced setting for CBR.
authorMarco Paniconi <marpan@google.com>
Tue, 17 Apr 2018 17:32:25 +0000 (10:32 -0700)
committerMarco Paniconi <marpan@google.com>
Tue, 17 Apr 2018 17:37:47 +0000 (10:37 -0700)
The setting this_key_frame_forced can lead to large key frame sizes,
not suitable for CBR rate control used for RTC.

Change-Id: Idf6d2bf385d5b1494f4bf783f623b7c202f34e55

vp9/encoder/vp9_ratectrl.c

index a115054b614db4ea2710ca1d8aaaf31892baad14..c9632e904e024acd3f93c12a1bf8bf1c59f1716b 100644 (file)
@@ -1775,8 +1775,6 @@ void vp9_rc_get_one_pass_cbr_params(VP9_COMP *cpi) {
   if ((cm->current_video_frame == 0 || (cpi->frame_flags & FRAMEFLAGS_KEY) ||
        rc->frames_to_key == 0 || (cpi->oxcf.auto_key && 0))) {
     cm->frame_type = KEY_FRAME;
-    rc->this_key_frame_forced =
-        cm->current_video_frame != 0 && rc->frames_to_key == 0;
     rc->frames_to_key = cpi->oxcf.key_freq;
     rc->kf_boost = DEFAULT_KF_BOOST;
     rc->source_alt_ref_active = 0;