ref: 78859608302d9ec5bf6e5d04347746b5620bb03f
parent: eea06db1782b078aacfc8e5dc06e8e29710ec0ef
author: Marco Paniconi <marpan@google.com>
date: Sun Jan 26 12:54:02 EST 2020
vp9-svc: Fix to resetting rc flags on change_config Condition should account for spatial layers. Change-Id: I53ef27800d6cba1ae9d313d8f476e5137734d3d8
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -2060,7 +2060,7 @@
// configuration change has a large change in avg_frame_bandwidth.
// For SVC check for resetting based on spatial layer average bandwidth.
// Also reset buffer level to optimal level.
- if (cm->current_video_frame > 0) {
+ if (cm->current_video_frame > (unsigned int)cpi->svc.number_spatial_layers) {
if (cpi->use_svc) {
vp9_svc_check_reset_layer_rc_flag(cpi);
} else {
--
⑨