Index: webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoEncoderSettings.mm |
diff --git a/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoEncoderSettings.mm b/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoEncoderSettings.mm |
index af82e0c4f2fc1f8440675cfb0448a069daf6c461..0fb8e46f2e2198f60c3737b27d38b4e86cd9647e 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoEncoderSettings.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoEncoderSettings.mm |
@@ -30,10 +30,8 @@ |
- (instancetype)initWithNativeVideoCodec:(const webrtc::VideoCodec *)videoCodec { |
if (self = [super init]) { |
if (videoCodec) { |
- rtc::Optional<const char *> codecName = CodecTypeToPayloadName(videoCodec->codecType); |
- if (codecName) { |
- _name = [NSString stringWithUTF8String:codecName.value()]; |
- } |
+ const char *codecName = CodecTypeToPayloadString(videoCodec->codecType); |
+ _name = [NSString stringWithUTF8String:codecName]; |
_width = videoCodec->width; |
_height = videoCodec->height; |