diff options
author | Sreerenj Balachandran <bsreerenj@gmail.com> | 2020-06-30 19:46:17 -0700 |
---|---|---|
committer | Sreerenj Balachandran <bsreerenj@gmail.com> | 2020-07-01 10:40:20 -0700 |
commit | 1e9929390c8c18ffda02e0073481625e5afb2529 (patch) | |
tree | e06f7e591f4c0bd810dfb92e6a5dea8b855b119a /vp9/ratectrl_rtc.cc | |
parent | 220b00dd0d624a24a081fa60e35b024357c506ad (diff) | |
download | libvpx-1e9929390c8c18ffda02e0073481625e5afb2529.tar.gz |
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
Diffstat (limited to 'vp9/ratectrl_rtc.cc')
-rw-r--r-- | vp9/ratectrl_rtc.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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); |