]> granicus.if.org Git - libvpx/commitdiff
Force better lower quantizer keyframe in case of high quantizer.
authorJim Bankoski <jimbankoski@google.com>
Mon, 22 Sep 2014 20:58:09 +0000 (13:58 -0700)
committerJim Bankoski <jimbankoski@google.com>
Tue, 7 Oct 2014 22:40:02 +0000 (15:40 -0700)
Change-Id: Ie69a164bc166b6a8819777038d65a7d9f9c3361f

vp9/encoder/vp9_ratectrl.c

index 9b6c773988e6d084669277be66b106b41cf0c0e0..724a2c3a65631217e38fe19b4c10751beec3eaa6 100644 (file)
@@ -559,7 +559,7 @@ static int calc_active_worst_quality_one_pass_cbr(const VP9_COMP *cpi) {
   int adjustment = 0;
   int active_worst_quality;
   if (cm->frame_type == KEY_FRAME)
-    return rc->worst_quality;
+    return rc->worst_quality * 4 / 5;
   if (cm->current_video_frame > 1)
     active_worst_quality = MIN(rc->worst_quality,
                                rc->avg_frame_qindex[INTER_FRAME] * 5 / 4);