Merge "vp9: Fix to active_best for GF/ARF in 1 pass vbr."

This commit is contained in:
Marco Paniconi 2016-04-12 21:18:41 +00:00 коммит произвёл Gerrit Code Review
Родитель ff72cca8bb 3861b25be1
Коммит f81b0000f6
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -905,9 +905,12 @@ static int rc_pick_q_and_bounds_one_pass_vbr(const VP9_COMP *cpi,
// Use the lower of active_worst_quality and recent
// average Q as basis for GF/ARF best Q limit unless last frame was
// a key frame.
if (rc->frames_since_key > 1 &&
rc->avg_frame_qindex[INTER_FRAME] < active_worst_quality) {
q = rc->avg_frame_qindex[INTER_FRAME];
if (rc->frames_since_key > 1) {
if (rc->avg_frame_qindex[INTER_FRAME] < active_worst_quality) {
q = rc->avg_frame_qindex[INTER_FRAME];
} else {
q = active_worst_quality;
}
} else {
q = rc->avg_frame_qindex[KEY_FRAME];
}