Index: webrtc/video/video_send_stream.cc |
diff --git a/webrtc/video/video_send_stream.cc b/webrtc/video/video_send_stream.cc |
index 4b75f95e06b28495373ff4754ab3578dcfa35717..9fcfdd7dc70c37dc156ae8124e6a8a4198a3a183 100644 |
--- a/webrtc/video/video_send_stream.cc |
+++ b/webrtc/video/video_send_stream.cc |
@@ -148,15 +148,10 @@ std::unique_ptr<FlexfecSender> MaybeCreateFlexfecSender( |
namespace { |
bool PayloadTypeSupportsSkippingFecPackets(const std::string& payload_name) { |
- rtc::Optional<VideoCodecType> codecType = |
- PayloadNameToCodecType(payload_name); |
- if (codecType && |
- (*codecType == kVideoCodecVP8 || *codecType == kVideoCodecVP9)) { |
+ const VideoCodecType codecType = PayloadStringToCodecType(payload_name); |
+ if (codecType == kVideoCodecVP8 || codecType == kVideoCodecVP9) { |
return true; |
} |
- RTC_DCHECK((codecType && *codecType == kVideoCodecH264) || |
- payload_name == "FAKE") |
- << "unknown payload_name " << payload_name; |
return false; |
} |