| Index: webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm
|
| diff --git a/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm b/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm
|
| index 3b03bf4e632d125c95ce9937d114c7867a4944d0..341363e942c5710b80d9a3c36a71a9a831968b94 100644
|
| --- a/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm
|
| +++ b/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm
|
| @@ -58,9 +58,7 @@ bool IsHighProfileEnabled() {
|
| @"packetization-mode" : @"1",
|
| };
|
| RTCVideoCodecInfo *constrainedHighInfo =
|
| - [[RTCVideoCodecInfo alloc] initWithPayload:0
|
| - name:codecName
|
| - parameters:constrainedHighParams];
|
| + [[RTCVideoCodecInfo alloc] initWithName:codecName parameters:constrainedHighParams];
|
| [codecs addObject:constrainedHighInfo];
|
| }
|
|
|
| @@ -70,9 +68,7 @@ bool IsHighProfileEnabled() {
|
| @"packetization-mode" : @"1",
|
| };
|
| RTCVideoCodecInfo *constrainedBaselineInfo =
|
| - [[RTCVideoCodecInfo alloc] initWithPayload:0
|
| - name:codecName
|
| - parameters:constrainedBaselineParams];
|
| + [[RTCVideoCodecInfo alloc] initWithName:codecName parameters:constrainedBaselineParams];
|
| [codecs addObject:constrainedBaselineInfo];
|
|
|
| return [codecs copy];
|
| @@ -93,7 +89,7 @@ bool IsHighProfileEnabled() {
|
|
|
| - (NSArray<RTCVideoCodecInfo *> *)supportedCodecs {
|
| NSString *codecName = [NSString stringWithUTF8String:cricket::kH264CodecName];
|
| - return @[ [[RTCVideoCodecInfo alloc] initWithPayload:0 name:codecName parameters:@{}] ];
|
| + return @[ [[RTCVideoCodecInfo alloc] initWithName:codecName parameters:nil] ];
|
| }
|
|
|
| @end
|
|
|