ref: f87fdebefca9d8f03d2758415c077033442bd167
parent: 9b769e47f411ab30303cf8f0ca67723e5f915c49
parent: dc36e5aff0786a696d50343c74391fe9aeaec97f
author: Marco Paniconi <[email protected]>
date: Fri Aug 7 14:38:40 EDT 2015
Merge "Fix a setting in cyclic refresh."
--- a/vp9/encoder/vp9_aq_cyclicrefresh.c
+++ b/vp9/encoder/vp9_aq_cyclicrefresh.c
@@ -459,7 +459,10 @@
cr->time_for_refresh = 0;
// Use larger delta-qp (increase rate_ratio_qdelta) for first few (~4)
// periods of the refresh cycle, after a key frame.
- if (rc->frames_since_key < 4 * cr->percent_refresh)
+ // Account for larger interval on base layer for temporal layers.
+ if (cr->percent_refresh > 0 &&
+ rc->frames_since_key < (4 * cpi->svc.number_temporal_layers) *
+ (100 / cr->percent_refresh))
cr->rate_ratio_qdelta = 3.0;
else
cr->rate_ratio_qdelta = 2.0;