ref: 199de0bb7ef41a6d9c03560c7853c59f416f5570
parent: 9416e222e0ad9bf2c740bafb6fb043a8364da9d5
parent: bbfc3290a4da45f0166bc81a7d0da0e097f3f9b3
author: Paul Wilkins <[email protected]>
date: Wed Jul 25 04:23:33 EDT 2018
Merge "Limit min Q for normal frames."
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -1330,6 +1330,14 @@
}
}
+ // For normal frames do not allow an active minq lower than the q used for
+ // the last boosted frame.
+ if (!frame_is_intra_only(cm) &&
+ (!(cpi->refresh_golden_frame || cpi->refresh_alt_ref_frame) ||
+ rc->is_src_frame_alt_ref)) {
+ active_best_quality = VPXMAX(active_best_quality, rc->last_boosted_qindex);
+ }
+
#if LIMIT_QRANGE_FOR_ALTREF_AND_KEY
vpx_clear_system_state();
// Static forced key frames Q restrictions dealt with elsewhere.