OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 #include "webrtc/config.h" | 10 #include "webrtc/config.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 ss << ", protected_media_ssrcs: ["; | 43 ss << ", protected_media_ssrcs: ["; |
44 size_t i = 0; | 44 size_t i = 0; |
45 for (; i + 1 < protected_media_ssrcs.size(); ++i) | 45 for (; i + 1 < protected_media_ssrcs.size(); ++i) |
46 ss << protected_media_ssrcs[i] << ", "; | 46 ss << protected_media_ssrcs[i] << ", "; |
47 if (!protected_media_ssrcs.empty()) | 47 if (!protected_media_ssrcs.empty()) |
48 ss << protected_media_ssrcs[i]; | 48 ss << protected_media_ssrcs[i]; |
49 ss << "]}"; | 49 ss << "]}"; |
50 return ss.str(); | 50 return ss.str(); |
51 } | 51 } |
52 | 52 |
53 bool FlexfecConfig::IsValid() const { | |
54 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
| |
55 return false; | |
56 if (flexfec_payload_type > 127) | |
57 return false; | |
58 if (flexfec_ssrc == 0) | |
59 return false; | |
60 if (protected_media_ssrcs.size() != 1) | |
61 return false; | |
62 return true; | |
63 } | |
64 | |
53 std::string RtpExtension::ToString() const { | 65 std::string RtpExtension::ToString() const { |
54 std::stringstream ss; | 66 std::stringstream ss; |
55 ss << "{uri: " << uri; | 67 ss << "{uri: " << uri; |
56 ss << ", id: " << id; | 68 ss << ", id: " << id; |
57 ss << '}'; | 69 ss << '}'; |
58 return ss.str(); | 70 return ss.str(); |
59 } | 71 } |
60 | 72 |
61 const char* RtpExtension::kAudioLevelUri = | 73 const char* RtpExtension::kAudioLevelUri = |
62 "urn:ietf:params:rtp-hdrext:ssrc-audio-level"; | 74 "urn:ietf:params:rtp-hdrext:ssrc-audio-level"; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
217 void VideoEncoderConfig::Vp9EncoderSpecificSettings::FillVideoCodecVp9( | 229 void VideoEncoderConfig::Vp9EncoderSpecificSettings::FillVideoCodecVp9( |
218 VideoCodecVP9* vp9_settings) const { | 230 VideoCodecVP9* vp9_settings) const { |
219 *vp9_settings = specifics_; | 231 *vp9_settings = specifics_; |
220 } | 232 } |
221 | 233 |
222 DecoderSpecificSettings::DecoderSpecificSettings() = default; | 234 DecoderSpecificSettings::DecoderSpecificSettings() = default; |
223 | 235 |
224 DecoderSpecificSettings::~DecoderSpecificSettings() = default; | 236 DecoderSpecificSettings::~DecoderSpecificSettings() = default; |
225 | 237 |
226 } // namespace webrtc | 238 } // namespace webrtc |
OLD | NEW |