ref: dae97868da290b2d401416caed80a22bbdcae6de
parent: 0cac69f594f50fb229992ea657aedce0f5031193
author: Jim Bankoski <[email protected]>
date: Mon Sep 22 09:58:09 EDT 2014
Force better lower quantizer keyframe in case of high quantizer. Change-Id: Ie69a164bc166b6a8819777038d65a7d9f9c3361f
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -559,7 +559,7 @@
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);