Force better lower quantizer keyframe in case of high quantizer.

Change-Id: Ie69a164bc166b6a8819777038d65a7d9f9c3361f
This commit is contained in:
Jim Bankoski 2014-09-22 13:58:09 -07:00
parent 0cac69f594
commit dae97868da

View 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);