Make RtpEncodingParameters to not reverse active flags order
Bug: webrtc:11319 Change-Id: If63db02d282ee622c12405f85c0fbae1ba13fcb2 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/168196 Reviewed-by: Florent Castelli <orphis@webrtc.org> Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30459}
This commit is contained in:

committed by
Commit Bot

parent
02b17a5507
commit
72859e5e15
@ -2117,6 +2117,17 @@ void WebRtcVideoChannel::WebRtcVideoSendStream::UpdateSendState() {
|
||||
for (size_t i = 0; i < num_layers; ++i) {
|
||||
active_layers[i] = IsLayerActive(rtp_parameters_.encodings[i]);
|
||||
}
|
||||
if (parameters_.encoder_config.number_of_streams == 1 &&
|
||||
rtp_parameters_.encodings.size() > 1) {
|
||||
// SVC is used.
|
||||
// The only present simulcast layer should be active if any of the
|
||||
// configured SVC layers is active.
|
||||
bool is_active = false;
|
||||
for (size_t i = 0; i < rtp_parameters_.encodings.size(); ++i) {
|
||||
is_active |= rtp_parameters_.encodings[i].active;
|
||||
}
|
||||
active_layers[0] = is_active;
|
||||
}
|
||||
// This updates what simulcast layers are sending, and possibly starts
|
||||
// or stops the VideoSendStream.
|
||||
stream_->UpdateActiveSimulcastLayers(active_layers);
|
||||
|
Reference in New Issue
Block a user