Condition should account for spatial layers.
Change-Id: I53ef27800d6cba1ae9d313d8f476e5137734d3d8
// 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 {