rtc: Fix to set actual_num_seg#_blocks
This fixes the condition in the CL:
https://aomedia-review.googlesource.com/c/aom/+/173765
That condition with apply_cyclic_refresh was
only meant to be with temporal layers.
Stats changed: small bdrate gain
speed 10 rtc derf:
avg/ovr/ssim, IC speedup
-0.017/-0.013/-0.019, -0.004
Change-Id: I33fd238afff4affb2ead66deca098e4b6f526ea2
diff --git a/av1/encoder/encodeframe.c b/av1/encoder/encodeframe.c
index 28f135b..e5e9b75 100644
--- a/av1/encoder/encodeframe.c
+++ b/av1/encoder/encodeframe.c
@@ -1871,7 +1871,8 @@
// base_qindex
cm->delta_q_info.delta_q_present_flag &= quant_params->base_qindex > 0;
cm->delta_q_info.delta_lf_present_flag &= quant_params->base_qindex > 0;
- } else if (cpi->cyclic_refresh->apply_cyclic_refresh) {
+ } else if (cpi->cyclic_refresh->apply_cyclic_refresh ||
+ cpi->svc.number_temporal_layers == 1) {
cpi->cyclic_refresh->actual_num_seg1_blocks = 0;
cpi->cyclic_refresh->actual_num_seg2_blocks = 0;
}