Only set apply_alignment_to_all_simulcast_layers if set by any encoder.
Bug: none Change-Id: I16448b71c54536d88e6e5326586219f833daf174 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/278044 Commit-Queue: Åsa Persson <asapersson@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38305}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
b324206e31
commit
379a0b49d2
@ -928,12 +928,7 @@ VideoEncoder::EncoderInfo SimulcastEncoderAdapter::GetEncoderInfo() const {
|
||||
encoder_info.requested_resolution_alignment = cricket::LeastCommonMultiple(
|
||||
encoder_info.requested_resolution_alignment,
|
||||
encoder_impl_info.requested_resolution_alignment);
|
||||
// request alignment on all layers if any of the encoders may need it, or
|
||||
// if any non-top layer encoder requests a non-trivial alignment.
|
||||
if (encoder_impl_info.apply_alignment_to_all_simulcast_layers ||
|
||||
(encoder_impl_info.requested_resolution_alignment > 1 &&
|
||||
(codec_.simulcastStream[i].height < codec_.height ||
|
||||
codec_.simulcastStream[i].width < codec_.width))) {
|
||||
if (encoder_impl_info.apply_alignment_to_all_simulcast_layers) {
|
||||
encoder_info.apply_alignment_to_all_simulcast_layers = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user