From: Marco Paniconi Date: Tue, 17 Apr 2018 17:32:25 +0000 (-0700) Subject: vp9: Remove this_key_frame_forced setting for CBR. X-Git-Tag: v1.8.0~738 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aaaf9215e21d9aae155738aadeeaded3662d8b16;p=libvpx vp9: Remove this_key_frame_forced setting for CBR. 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 --- diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c index a115054b6..c9632e904 100644 --- a/vp9/encoder/vp9_ratectrl.c +++ b/vp9/encoder/vp9_ratectrl.c @@ -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;