Optional: Use nullopt and implicit construction in /api
Changes places where we explicitly construct an Optional to instead use nullopt or the requisite value type only. This CL was uploaded by git cl split. R=pthatcher@webrtc.org Bug: None Change-Id: Icdc7e9e4395eeac053483c69e53501e5aa222107 Reviewed-on: https://webrtc-review.googlesource.com/23567 Reviewed-by: Steve Anton <steveanton@webrtc.org> Reviewed-by: Peter Thatcher <pthatcher@webrtc.org> Commit-Queue: Oskar Sundbom <ossu@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20867}
This commit is contained in:
committed by
Commit Bot
parent
f9d303c042
commit
0e1d7989a5
@ -61,15 +61,14 @@ VideoCodecH264 VideoEncoder::GetDefaultH264Settings() {
|
||||
}
|
||||
|
||||
VideoEncoder::ScalingSettings::ScalingSettings(bool on, int low, int high)
|
||||
: enabled(on),
|
||||
thresholds(rtc::Optional<QpThresholds>(QpThresholds(low, high))) {}
|
||||
: enabled(on), thresholds(QpThresholds(low, high)) {}
|
||||
|
||||
VideoEncoder::ScalingSettings::ScalingSettings(bool on,
|
||||
int low,
|
||||
int high,
|
||||
int min_pixels)
|
||||
: enabled(on),
|
||||
thresholds(rtc::Optional<QpThresholds>(QpThresholds(low, high))),
|
||||
thresholds(QpThresholds(low, high)),
|
||||
min_pixels_per_frame(min_pixels) {}
|
||||
|
||||
VideoEncoder::ScalingSettings::ScalingSettings(bool on, int min_pixels)
|
||||
|
||||
Reference in New Issue
Block a user