Merge pull request #366 from MichaelMKenny/4K-120-bitrate-fix

Capped bitrate at 100Mbps.
This commit is contained in:
Cameron Gutman 2019-05-31 14:04:10 -05:00 • committed by GitHub
commit dcd2dc97a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,7 +199,7 @@ static const int bitrateTable[] = {
}
// We should always be exactly on a slider position with default bitrates
_bitrate = defaultBitrate;
_bitrate = MIN(defaultBitrate, 100000);
assert(bitrateTable[[self getSliderValueForBitrate:_bitrate]] == _bitrate);
[self.bitrateSlider setValue:[self getSliderValueForBitrate:_bitrate] animated:YES];