Index: webrtc/video/video_stream_encoder.cc |
diff --git a/webrtc/video/video_stream_encoder.cc b/webrtc/video/video_stream_encoder.cc |
index 7e25df09b42128c737c823c0e6fc31cbdab35217..52dcbf0832ca9a45c16f00be33b00f71f8bc99b7 100644 |
--- a/webrtc/video/video_stream_encoder.cc |
+++ b/webrtc/video/video_stream_encoder.cc |
@@ -387,8 +387,7 @@ VideoStreamEncoder::VideoStreamEncoder(uint32_t number_of_cores, |
source_proxy_(new VideoSourceProxy(this)), |
sink_(nullptr), |
settings_(settings), |
- codec_type_(PayloadNameToCodecType(settings.payload_name) |
- .value_or(VideoCodecType::kVideoCodecUnknown)), |
+ codec_type_(PayloadStringToCodecType(settings.payload_name)), |
video_sender_(Clock::GetRealTimeClock(), this, this), |
overuse_detector_( |
overuse_detector.get() |