Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: webrtc/video/video_send_stream.cc

Issue 2998293002: Make CodecType conversion functions non-optional. (Closed)
Patch Set: Keep old functions for backwards-compat Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/video/video_receive_stream.cc ('k') | webrtc/video/video_stream_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « webrtc/video/video_receive_stream.cc ('k') | webrtc/video/video_stream_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698