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

Unified Diff: webrtc/config.cc

Issue 2511703002: Wire up FlexFEC in VideoEngine2. (Closed)
Patch Set: Created 4 years, 1 month 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
Index: webrtc/config.cc
diff --git a/webrtc/config.cc b/webrtc/config.cc
index 4b437e264d3dcebd675fb7c41ce4175697ed532c..313390494f66f8cbb4409560da41d493df43a95f 100644
--- a/webrtc/config.cc
+++ b/webrtc/config.cc
@@ -50,6 +50,18 @@ std::string FlexfecConfig::ToString() const {
return ss.str();
}
+bool FlexfecConfig::IsValid() const {
+ if (flexfec_payload_type < 0)
magjed_webrtc 2016/11/17 13:37:19 Isn't the valid payload type range 96-127 for this
brandtr 2016/11/17 17:28:57 Yes, you are right. My intention with this functio
+ return false;
+ if (flexfec_payload_type > 127)
+ return false;
+ if (flexfec_ssrc == 0)
+ return false;
+ if (protected_media_ssrcs.size() != 1)
+ return false;
+ return true;
+}
+
std::string RtpExtension::ToString() const {
std::stringstream ss;
ss << "{uri: " << uri;

Powered by Google App Engine
This is Rietveld 408576698