Clarify comment in simulcast.cc.

NOTRY=True
TBR=magjed@webrtc.org

Bug: None
Change-Id: I5355919edacbd6e220e8f511abec7e5d058d5e85
Reviewed-on: https://webrtc-review.googlesource.com/72901
Reviewed-by: Rasmus Brandt <brandtr@webrtc.org>
Commit-Queue: Rasmus Brandt <brandtr@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23041}
This commit is contained in:
Rasmus Brandt 2018-04-26 17:47:42 +02:00 committed by Commit Bot
parent bc0f0d3ded
commit efbdcb0008

View File

@ -90,7 +90,7 @@ int FindSimulcastFormatIndex(int width, int height, size_t max_layers) {
}
// Simulcast stream width and height must both be dividable by
// |2 ^ simulcast_layers - 1|.
// |2 ^ (simulcast_layers - 1)|.
int NormalizeSimulcastSize(int size, size_t simulcast_layers) {
const int base2_exponent = static_cast<int>(simulcast_layers) - 1;
return ((size >> base2_exponent) << base2_exponent);