Chromium Code Reviews| 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; |