Scaling settings nullability in Obj-C SDK.

This method is allowed to return nil but was not annotated as such.

Bug: webrtc:8560
Change-Id: If54aa94d6ff83b7bdb87b526244616e2627a8999
Reviewed-on: https://webrtc-review.googlesource.com/97380
Reviewed-by: Peter Hanspers <peterhanspers@webrtc.org>
Commit-Queue: Anders Carlsson <andersc@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24568}
This commit is contained in:
Anders Carlsson
2018-09-03 14:17:03 +02:00
committed by Commit Bot
parent 55d5ef0048
commit 2ac2739d06
3 changed files with 3 additions and 3 deletions

View File

@ -753,7 +753,7 @@ CFStringRef ExtractProfile(webrtc::SdpVideoFormat videoFormat) {
_bitrateAdjuster->Update(frame.buffer.length);
}
- (RTCVideoEncoderQpThresholds *)scalingSettings {
- (nullable RTCVideoEncoderQpThresholds *)scalingSettings {
return [[RTCVideoEncoderQpThresholds alloc] initWithThresholdsLow:kLowH264QpThreshold
high:kHighH264QpThreshold];
}