From: Sreerenj Balachandran Date: Wed, 1 Jul 2020 02:46:17 +0000 (-0700) Subject: vp9-svc: Fix the bitrate control for spatial svc X-Git-Tag: v1.9.0~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=129e0756a55995bdc75e1ddf11030e71643b821d;p=libvpx vp9-svc: Fix the bitrate control for spatial svc Make sure to initialize the layer context for spatial-svc which has a single temporal layer. Change-Id: I026ecec483555658e09d6d8893e56ab62ee6914b (cherry picked from commit 1e9929390c8c18ffda02e0073481625e5afb2529) --- diff --git a/AUTHORS b/AUTHORS index 79c54db78..352c91fed 100644 --- a/AUTHORS +++ b/AUTHORS @@ -169,6 +169,7 @@ Shimon Doodkin Shiyou Yin Shubham Tandle Shunyao Li +Sreerenj Balachandran Stefan Holmer Suman Sunkara Supradeep T R diff --git a/vp9/ratectrl_rtc.cc b/vp9/ratectrl_rtc.cc index 3d6afc5d0..6238b3a95 100644 --- a/vp9/ratectrl_rtc.cc +++ b/vp9/ratectrl_rtc.cc @@ -107,7 +107,8 @@ void VP9RateControlRTC::UpdateRateControl( } vp9_set_rc_buffer_sizes(cpi_); vp9_new_framerate(cpi_, cpi_->framerate); - if (cpi_->svc.number_temporal_layers > 1) { + if (cpi_->svc.number_temporal_layers > 1 || + cpi_->svc.number_spatial_layers > 1) { if (cm->current_video_frame == 0) vp9_init_layer_context(cpi_); vp9_update_layer_context_change_config(cpi_, (int)cpi_->oxcf.target_bandwidth);