Index: webrtc/video/video_receive_stream.cc |
diff --git a/webrtc/video/video_receive_stream.cc b/webrtc/video/video_receive_stream.cc |
index 56264d9b1f1e521bc1059b42ebd74a5eaf519bc1..ae14634a94602fd4d8af9af62f63e8d004716cc5 100644 |
--- a/webrtc/video/video_receive_stream.cc |
+++ b/webrtc/video/video_receive_stream.cc |
@@ -47,8 +47,7 @@ VideoCodec CreateDecoderVideoCodec(const VideoReceiveStream::Decoder& decoder) { |
codec.plType = decoder.payload_type; |
strncpy(codec.plName, decoder.payload_name.c_str(), sizeof(codec.plName)); |
- codec.codecType = |
- PayloadNameToCodecType(decoder.payload_name).value_or(kVideoCodecGeneric); |
+ codec.codecType = PayloadStringToCodecType(decoder.payload_name); |
if (codec.codecType == kVideoCodecVP8) { |
*(codec.VP8()) = VideoEncoder::GetDefaultVp8Settings(); |