]> granicus.if.org Git - libvpx/commitdiff
Remove ineffective condition from rc_pick_q_and_bounds
authorJingning Han <jingning@google.com>
Tue, 27 Nov 2018 18:33:43 +0000 (10:33 -0800)
committerJingning Han <jingning@google.com>
Tue, 27 Nov 2018 18:33:43 +0000 (10:33 -0800)
Change-Id: I67b92182ee80ec5548c5a97345b6252e49033c4a

vp9/encoder/vp9_ratectrl.c

index d081f1a494e66964f558cdc66e0bca6c2e6ca570..cdd824358cda206e5a0663e6462350b160a9534d 100644 (file)
@@ -1923,10 +1923,9 @@ void vp9_rc_get_one_pass_vbr_params(VP9_COMP *cpi) {
   VP9_COMMON *const cm = &cpi->common;
   RATE_CONTROL *const rc = &cpi->rc;
   int target;
-  // TODO(yaowu): replace the "auto_key && 0" below with proper decision logic.
   if (!cpi->refresh_alt_ref_frame &&
       (cm->current_video_frame == 0 || (cpi->frame_flags & FRAMEFLAGS_KEY) ||
-       rc->frames_to_key == 0 || (cpi->oxcf.auto_key && 0))) {
+       rc->frames_to_key == 0)) {
     cm->frame_type = KEY_FRAME;
     rc->this_key_frame_forced =
         cm->current_video_frame != 0 && rc->frames_to_key == 0;
@@ -2218,9 +2217,8 @@ void vp9_rc_get_one_pass_cbr_params(VP9_COMP *cpi) {
   VP9_COMMON *const cm = &cpi->common;
   RATE_CONTROL *const rc = &cpi->rc;
   int target;
-  // TODO(yaowu): replace the "auto_key && 0" below with proper decision logic.
   if ((cm->current_video_frame == 0) || (cpi->frame_flags & FRAMEFLAGS_KEY) ||
-      rc->frames_to_key == 0 || (cpi->oxcf.auto_key && 0)) {
+      rc->frames_to_key == 0) {
     cm->frame_type = KEY_FRAME;
     rc->frames_to_key = cpi->oxcf.key_freq;
     rc->kf_boost = DEFAULT_KF_BOOST;