Ensure that the first active layer isn't disabled by too low input resolution
If e.g. CPU adaptation reduces input video size too much, video pipeline would reduce the number of used simulcast streams/spatial layers. This may result in disabled video if some streams are disabled by Rtp encoding parameters API. Bug: webrtc:11319 Change-Id: Id7f157255599dcb6f494129b83477cda4bea982a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/168480 Reviewed-by: Evan Shrubsole <eshr@google.com> Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30498}
This commit is contained in:
committed by
Commit Bot
parent
ccd49d9af6
commit
03d909634b
@ -62,8 +62,8 @@ const int kMaxQp = 56;
|
||||
|
||||
void ConfigureSimulcast(VideoCodec* codec_settings) {
|
||||
const std::vector<webrtc::VideoStream> streams = cricket::GetSimulcastConfig(
|
||||
codec_settings->numberOfSimulcastStreams, codec_settings->width,
|
||||
codec_settings->height, kBitratePriority, kMaxQp,
|
||||
/*min_layer=*/1, codec_settings->numberOfSimulcastStreams,
|
||||
codec_settings->width, codec_settings->height, kBitratePriority, kMaxQp,
|
||||
/* is_screenshare = */ false, true);
|
||||
|
||||
for (size_t i = 0; i < streams.size(); ++i) {
|
||||
@ -85,7 +85,7 @@ void ConfigureSvc(VideoCodec* codec_settings) {
|
||||
|
||||
const std::vector<SpatialLayer> layers = GetSvcConfig(
|
||||
codec_settings->width, codec_settings->height, kMaxFramerateFps,
|
||||
codec_settings->VP9()->numberOfSpatialLayers,
|
||||
/*min_spatial_layers=*/1, codec_settings->VP9()->numberOfSpatialLayers,
|
||||
codec_settings->VP9()->numberOfTemporalLayers,
|
||||
/* is_screen_sharing = */ false);
|
||||
ASSERT_EQ(codec_settings->VP9()->numberOfSpatialLayers, layers.size())
|
||||
|
||||
Reference in New Issue
Block a user