| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 |
| 11 | #include "media/base/codec.h" |
| 12 |
| 13 | #include "absl/algorithm/container.h" |
| 14 | #include "absl/strings/match.h" |
| 15 | #include "api/audio_codecs/audio_format.h" |
| 16 | #include "api/video_codecs/av1_profile.h" |
| 17 | #include "api/video_codecs/h264_profile_level_id.h" |
| 18 | #ifdef RTC_ENABLE_H265 |
| 19 | #include "api/video_codecs/h265_profile_tier_level.h" |
| 20 | #endif |
| 21 | #include "api/video_codecs/vp9_profile.h" |
| 22 | #include "media/base/media_constants.h" |
| 23 | #include "rtc_base/checks.h" |
| 24 | #include "rtc_base/logging.h" |
| 25 | #include "rtc_base/string_encode.h" |
| 26 | #include "rtc_base/strings/string_builder.h" |
| 27 |
| 28 | namespace cricket { |
| 29 | namespace { |
| 30 |
| 31 | std::string GetH264PacketizationModeOrDefault( |
| 32 | const webrtc::CodecParameterMap& params) { |
| 33 | auto it = params.find(kH264FmtpPacketizationMode); |
| 34 | if (it != params.end()) { |
| 35 | return it->second; |
| 36 | } |
| 37 | // If packetization-mode is not present, default to "0". |
| 38 | // https://tools.ietf.org/html/rfc6184#section-6.2 |
| 39 | return "0"; |
| 40 | } |
| 41 |
| 42 | bool IsSameH264PacketizationMode(const webrtc::CodecParameterMap& left, |
| 43 | const webrtc::CodecParameterMap& right) { |
| 44 | return GetH264PacketizationModeOrDefault(left) == |
| 45 | GetH264PacketizationModeOrDefault(right); |
| 46 | } |
| 47 |
| 48 | #ifdef RTC_ENABLE_H265 |
| 49 | std::string GetH265TxModeOrDefault(const webrtc::CodecParameterMap& params) { |
| 50 | auto it = params.find(kH265FmtpTxMode); |
| 51 | if (it != params.end()) { |
| 52 | return it->second; |
| 53 | } |
| 54 | // If TxMode is not present, a value of "SRST" must be inferred. |
| 55 | // https://tools.ietf.org/html/rfc7798@section-7.1 |
| 56 | return "SRST"; |
| 57 | } |
| 58 |
| 59 | bool IsSameH265TxMode(const webrtc::CodecParameterMap& left, |
| 60 | const webrtc::CodecParameterMap& right) { |
| 61 | return absl::EqualsIgnoreCase(GetH265TxModeOrDefault(left), |
| 62 | GetH265TxModeOrDefault(right)); |
| 63 | } |
| 64 | #endif |
| 65 |
| 66 | // Some (video) codecs are actually families of codecs and rely on parameters |
| 67 | // to distinguish different incompatible family members. |
| 68 | bool IsSameCodecSpecific(const std::string& name1, |
| 69 | const webrtc::CodecParameterMap& params1, |
| 70 | const std::string& name2, |
| 71 | const webrtc::CodecParameterMap& params2) { |
| 72 | // The names might not necessarily match, so check both. |
| 73 | auto either_name_matches = [&](const std::string name) { |
| 74 | return absl::EqualsIgnoreCase(name, name1) || |
| 75 | absl::EqualsIgnoreCase(name, name2); |
| 76 | }; |
| 77 | if (either_name_matches(kH264CodecName)) |
| 78 | return webrtc::H264IsSameProfile(params1, params2) && |
| 79 | IsSameH264PacketizationMode(params1, params2); |
| 80 | if (either_name_matches(kVp9CodecName)) |
| 81 | return webrtc::VP9IsSameProfile(params1, params2); |
| 82 | if (either_name_matches(kAv1CodecName)) |
| 83 | return webrtc::AV1IsSameProfile(params1, params2); |
| 84 | #ifdef RTC_ENABLE_H265 |
| 85 | if (either_name_matches(kH265CodecName)) { |
| 86 | return webrtc::H265IsSameProfileTierLevel(params1, params2) && |
| 87 | IsSameH265TxMode(params1, params2); |
| 88 | } |
| 89 | #endif |
| 90 | return true; |
| 91 | } |
| 92 |
| 93 | } // namespace |
| 94 |
| 95 | FeedbackParams::FeedbackParams() = default; |
| 96 | FeedbackParams::~FeedbackParams() = default; |
| 97 |
| 98 | bool FeedbackParam::operator==(const FeedbackParam& other) const { |
| 99 | return absl::EqualsIgnoreCase(other.id(), id()) && |
| 100 | absl::EqualsIgnoreCase(other.param(), param()); |
| 101 | } |
| 102 |
| 103 | bool FeedbackParams::operator==(const FeedbackParams& other) const { |
| 104 | return params_ == other.params_; |
| 105 | } |
| 106 |
| 107 | bool FeedbackParams::Has(const FeedbackParam& param) const { |
| 108 | return absl::c_linear_search(params_, param); |
| 109 | } |
| 110 |
| 111 | void FeedbackParams::Add(const FeedbackParam& param) { |
| 112 | if (param.id().empty()) { |
| 113 | return; |
| 114 | } |
| 115 | if (Has(param)) { |
| 116 | // Param already in `this`. |
| 117 | return; |
| 118 | } |
| 119 | params_.push_back(param); |
| 120 | RTC_CHECK(!HasDuplicateEntries()); |
| 121 | } |
| 122 |
| 123 | void FeedbackParams::Intersect(const FeedbackParams& from) { |
| 124 | std::vector<FeedbackParam>::iterator iter_to = params_.begin(); |
| 125 | while (iter_to != params_.end()) { |
| 126 | if (!from.Has(*iter_to)) { |
| 127 | iter_to = params_.erase(iter_to); |
| 128 | } else { |
| 129 | ++iter_to; |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 |
| 134 | bool FeedbackParams::HasDuplicateEntries() const { |
| 135 | for (std::vector<FeedbackParam>::const_iterator iter = params_.begin(); |
| 136 | iter != params_.end(); ++iter) { |
| 137 | for (std::vector<FeedbackParam>::const_iterator found = iter + 1; |
| 138 | found != params_.end(); ++found) { |
| 139 | if (*found == *iter) { |
| 140 | return true; |
| 141 | } |
| 142 | } |
| 143 | } |
| 144 | return false; |
| 145 | } |
| 146 |
| 147 | Codec::Codec(Type type, int id, const std::string& name, int clockrate) |
| 148 | : Codec(type, id, name, clockrate, 0) {} |
| 149 | Codec::Codec(Type type, |
| 150 | int id, |
| 151 | const std::string& name, |
| 152 | int clockrate, |
| 153 | size_t channels) |
| 154 | : type(type), |
| 155 | id(id), |
| 156 | name(name), |
| 157 | clockrate(clockrate), |
| 158 | bitrate(0), |
| 159 | channels(channels) {} |
| 160 |
| 161 | Codec::Codec(Type type) : Codec(type, 0, "", 0) {} |
| 162 |
| 163 | Codec::Codec(const webrtc::SdpAudioFormat& c) |
| 164 | : Codec(Type::kAudio, 0, c.name, c.clockrate_hz, c.num_channels) { |
| 165 | params = c.parameters; |
| 166 | } |
| 167 |
| 168 | Codec::Codec(const webrtc::SdpVideoFormat& c) |
| 169 | : Codec(Type::kVideo, 0, c.name, kVideoCodecClockrate) { |
| 170 | params = c.parameters; |
| 171 | scalability_modes = c.scalability_modes; |
| 172 | } |
| 173 |
| 174 | Codec::Codec(const Codec& c) = default; |
| 175 | Codec::Codec(Codec&& c) = default; |
| 176 | Codec::~Codec() = default; |
| 177 | Codec& Codec::operator=(const Codec& c) = default; |
| 178 | Codec& Codec::operator=(Codec&& c) = default; |
| 179 |
| 180 | bool Codec::operator==(const Codec& c) const { |
| 181 | return type == c.type && this->id == c.id && // id is reserved in objective-c |
| 182 | name == c.name && clockrate == c.clockrate && params == c.params && |
| 183 | feedback_params == c.feedback_params && |
| 184 | (type == Type::kAudio |
| 185 | ? (bitrate == c.bitrate && channels == c.channels) |
| 186 | : (packetization == c.packetization)); |
| 187 | } |
| 188 |
| 189 | bool Codec::Matches(const Codec& codec) const { |
| 190 | // Match the codec id/name based on the typical static/dynamic name rules. |
| 191 | // Matching is case-insensitive. |
| 192 |
| 193 | // We support the ranges [96, 127] and more recently [35, 65]. |
| 194 | // https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-1 |
| 195 | // Within those ranges we match by codec name, outside by codec id. |
| 196 | // Since no codecs are assigned an id in the range [66, 95] by us, these will |
| 197 | // never match. |
| 198 | const int kLowerDynamicRangeMin = 35; |
| 199 | const int kLowerDynamicRangeMax = 65; |
| 200 | const int kUpperDynamicRangeMin = 96; |
| 201 | const int kUpperDynamicRangeMax = 127; |
| 202 | const bool is_id_in_dynamic_range = |
| 203 | (id >= kLowerDynamicRangeMin && id <= kLowerDynamicRangeMax) || |
| 204 | (id >= kUpperDynamicRangeMin && id <= kUpperDynamicRangeMax); |
| 205 | const bool is_codec_id_in_dynamic_range = |
| 206 | (codec.id >= kLowerDynamicRangeMin && |
| 207 | codec.id <= kLowerDynamicRangeMax) || |
| 208 | (codec.id >= kUpperDynamicRangeMin && codec.id <= kUpperDynamicRangeMax); |
| 209 | bool matches_id = is_id_in_dynamic_range && is_codec_id_in_dynamic_range |
| 210 | ? (absl::EqualsIgnoreCase(name, codec.name)) |
| 211 | : (id == codec.id); |
| 212 |
| 213 | auto matches_type_specific = [&]() { |
| 214 | switch (type) { |
| 215 | case Type::kAudio: |
| 216 | // If a nonzero clockrate is specified, it must match the actual |
| 217 | // clockrate. If a nonzero bitrate is specified, it must match the |
| 218 | // actual bitrate, unless the codec is VBR (0), where we just force the |
| 219 | // supplied value. The number of channels must match exactly, with the |
| 220 | // exception that channels=0 is treated synonymously as channels=1, per |
| 221 | // RFC 4566 section 6: " [The channels] parameter is OPTIONAL and may be |
| 222 | // omitted if the number of channels is one." |
| 223 | // Preference is ignored. |
| 224 | // TODO(juberti): Treat a zero clockrate as 8000Hz, the RTP default |
| 225 | // clockrate. |
| 226 | return ((codec.clockrate == 0 /*&& clockrate == 8000*/) || |
| 227 | clockrate == codec.clockrate) && |
| 228 | (codec.bitrate == 0 || bitrate <= 0 || |
| 229 | bitrate == codec.bitrate) && |
| 230 | ((codec.channels < 2 && channels < 2) || |
| 231 | channels == codec.channels); |
| 232 |
| 233 | case Type::kVideo: |
| 234 | return IsSameCodecSpecific(name, params, codec.name, codec.params); |
| 235 | } |
| 236 | }; |
| 237 |
| 238 | return matches_id && matches_type_specific(); |
| 239 | } |
| 240 |
| 241 | bool Codec::MatchesRtpCodec(const webrtc::RtpCodec& codec_capability) const { |
| 242 | webrtc::RtpCodecParameters codec_parameters = ToCodecParameters(); |
| 243 |
| 244 | return codec_parameters.name == codec_capability.name && |
| 245 | codec_parameters.kind == codec_capability.kind && |
| 246 | (codec_parameters.name == cricket::kRtxCodecName || |
| 247 | (codec_parameters.num_channels == codec_capability.num_channels && |
| 248 | codec_parameters.clock_rate == codec_capability.clock_rate && |
| 249 | codec_parameters.parameters == codec_capability.parameters)); |
| 250 | } |
| 251 |
| 252 | bool Codec::GetParam(const std::string& name, std::string* out) const { |
| 253 | webrtc::CodecParameterMap::const_iterator iter = params.find(name); |
| 254 | if (iter == params.end()) |
| 255 | return false; |
| 256 | *out = iter->second; |
| 257 | return true; |
| 258 | } |
| 259 |
| 260 | bool Codec::GetParam(const std::string& name, int* out) const { |
| 261 | webrtc::CodecParameterMap::const_iterator iter = params.find(name); |
| 262 | if (iter == params.end()) |
| 263 | return false; |
| 264 | return rtc::FromString(iter->second, out); |
| 265 | } |
| 266 |
| 267 | void Codec::SetParam(const std::string& name, const std::string& value) { |
| 268 | params[name] = value; |
| 269 | } |
| 270 |
| 271 | void Codec::SetParam(const std::string& name, int value) { |
| 272 | params[name] = rtc::ToString(value); |
| 273 | } |
| 274 |
| 275 | bool Codec::RemoveParam(const std::string& name) { |
| 276 | return params.erase(name) == 1; |
| 277 | } |
| 278 |
| 279 | void Codec::AddFeedbackParam(const FeedbackParam& param) { |
| 280 | feedback_params.Add(param); |
| 281 | } |
| 282 |
| 283 | bool Codec::HasFeedbackParam(const FeedbackParam& param) const { |
| 284 | return feedback_params.Has(param); |
| 285 | } |
| 286 |
| 287 | void Codec::IntersectFeedbackParams(const Codec& other) { |
| 288 | feedback_params.Intersect(other.feedback_params); |
| 289 | } |
| 290 |
| 291 | webrtc::RtpCodecParameters Codec::ToCodecParameters() const { |
| 292 | webrtc::RtpCodecParameters codec_params; |
| 293 | codec_params.payload_type = id; |
| 294 | codec_params.name = name; |
| 295 | codec_params.clock_rate = clockrate; |
| 296 | codec_params.parameters.insert(params.begin(), params.end()); |
| 297 |
| 298 | switch (type) { |
| 299 | case Type::kAudio: { |
| 300 | codec_params.num_channels = static_cast<int>(channels); |
| 301 | codec_params.kind = MEDIA_TYPE_AUDIO; |
| 302 | break; |
| 303 | } |
| 304 | case Type::kVideo: { |
| 305 | codec_params.kind = MEDIA_TYPE_VIDEO; |
| 306 | break; |
| 307 | } |
| 308 | } |
| 309 |
| 310 | return codec_params; |
| 311 | } |
| 312 |
| 313 | bool Codec::IsMediaCodec() const { |
| 314 | return !IsResiliencyCodec() && |
| 315 | !absl::EqualsIgnoreCase(name, kComfortNoiseCodecName); |
| 316 | } |
| 317 |
| 318 | bool Codec::IsResiliencyCodec() const { |
| 319 | return GetResiliencyType() != ResiliencyType::kNone; |
| 320 | } |
| 321 |
| 322 | Codec::ResiliencyType Codec::GetResiliencyType() const { |
| 323 | if (absl::EqualsIgnoreCase(name, kRedCodecName)) { |
| 324 | return ResiliencyType::kRed; |
| 325 | } |
| 326 | if (absl::EqualsIgnoreCase(name, kUlpfecCodecName)) { |
| 327 | return ResiliencyType::kUlpfec; |
| 328 | } |
| 329 | if (absl::EqualsIgnoreCase(name, kFlexfecCodecName)) { |
| 330 | return ResiliencyType::kFlexfec; |
| 331 | } |
| 332 | if (absl::EqualsIgnoreCase(name, kRtxCodecName)) { |
| 333 | return ResiliencyType::kRtx; |
| 334 | } |
| 335 | return ResiliencyType::kNone; |
| 336 | } |
| 337 |
| 338 | bool Codec::ValidateCodecFormat() const { |
| 339 | if (id < 0 || id > 127) { |
| 340 | RTC_LOG(LS_ERROR) << "Codec with invalid payload type: " << ToString(); |
| 341 | return false; |
| 342 | } |
| 343 | if (IsResiliencyCodec()) { |
| 344 | return true; |
| 345 | } |
| 346 |
| 347 | int min_bitrate = -1; |
| 348 | int max_bitrate = -1; |
| 349 | if (GetParam(kCodecParamMinBitrate, &min_bitrate) && |
| 350 | GetParam(kCodecParamMaxBitrate, &max_bitrate)) { |
| 351 | if (max_bitrate < min_bitrate) { |
| 352 | RTC_LOG(LS_ERROR) << "Codec with max < min bitrate: " << ToString(); |
| 353 | return false; |
| 354 | } |
| 355 | } |
| 356 | return true; |
| 357 | } |
| 358 |
| 359 | std::string Codec::ToString() const { |
| 360 | char buf[256]; |
| 361 |
| 362 | rtc::SimpleStringBuilder sb(buf); |
| 363 | switch (type) { |
| 364 | case Type::kAudio: { |
| 365 | sb << "AudioCodec[" << id << ":" << name << ":" << clockrate << ":" |
| 366 | << bitrate << ":" << channels << "]"; |
| 367 | break; |
| 368 | } |
| 369 | case Type::kVideo: { |
| 370 | sb << "VideoCodec[" << id << ":" << name; |
| 371 | if (packetization.has_value()) { |
| 372 | sb << ":" << *packetization; |
| 373 | } |
| 374 | sb << "]"; |
| 375 | break; |
| 376 | } |
| 377 | } |
| 378 | return sb.str(); |
| 379 | } |
| 380 |
| 381 | Codec CreateAudioRtxCodec(int rtx_payload_type, int associated_payload_type) { |
| 382 | Codec rtx_codec = CreateAudioCodec(rtx_payload_type, kRtxCodecName, 0, 1); |
| 383 | rtx_codec.SetParam(kCodecParamAssociatedPayloadType, associated_payload_type); |
| 384 | return rtx_codec; |
| 385 | } |
| 386 |
| 387 | Codec CreateVideoRtxCodec(int rtx_payload_type, int associated_payload_type) { |
| 388 | Codec rtx_codec = CreateVideoCodec(rtx_payload_type, kRtxCodecName); |
| 389 | rtx_codec.SetParam(kCodecParamAssociatedPayloadType, associated_payload_type); |
| 390 | return rtx_codec; |
| 391 | } |
| 392 |
| 393 | const Codec* FindCodecById(const std::vector<Codec>& codecs, int payload_type) { |
| 394 | for (const auto& codec : codecs) { |
| 395 | if (codec.id == payload_type) |
| 396 | return &codec; |
| 397 | } |
| 398 | return nullptr; |
| 399 | } |
| 400 |
| 401 | bool HasLntf(const Codec& codec) { |
| 402 | return codec.HasFeedbackParam( |
| 403 | FeedbackParam(kRtcpFbParamLntf, kParamValueEmpty)); |
| 404 | } |
| 405 |
| 406 | bool HasNack(const Codec& codec) { |
| 407 | return codec.HasFeedbackParam( |
| 408 | FeedbackParam(kRtcpFbParamNack, kParamValueEmpty)); |
| 409 | } |
| 410 |
| 411 | bool HasRemb(const Codec& codec) { |
| 412 | return codec.HasFeedbackParam( |
| 413 | FeedbackParam(kRtcpFbParamRemb, kParamValueEmpty)); |
| 414 | } |
| 415 |
| 416 | bool HasRrtr(const Codec& codec) { |
| 417 | return codec.HasFeedbackParam( |
| 418 | FeedbackParam(kRtcpFbParamRrtr, kParamValueEmpty)); |
| 419 | } |
| 420 |
| 421 | bool HasTransportCc(const Codec& codec) { |
| 422 | return codec.HasFeedbackParam( |
| 423 | FeedbackParam(kRtcpFbParamTransportCc, kParamValueEmpty)); |
| 424 | } |
| 425 |
| 426 | const Codec* FindMatchingVideoCodec(const std::vector<Codec>& supported_codecs, |
| 427 | const Codec& codec) { |
| 428 | webrtc::SdpVideoFormat sdp_video_format{codec.name, codec.params}; |
| 429 | for (const Codec& supported_codec : supported_codecs) { |
| 430 | if (sdp_video_format.IsSameCodec( |
| 431 | {supported_codec.name, supported_codec.params})) { |
| 432 | return &supported_codec; |
| 433 | } |
| 434 | } |
| 435 | return nullptr; |
| 436 | } |
| 437 |
| 438 | std::vector<const Codec*> FindAllMatchingCodecs( |
| 439 | const std::vector<Codec>& supported_codecs, |
| 440 | const Codec& codec) { |
| 441 | std::vector<const Codec*> result; |
| 442 | webrtc::SdpVideoFormat sdp(codec.name, codec.params); |
| 443 | for (const Codec& supported_codec : supported_codecs) { |
| 444 | if (sdp.IsSameCodec({supported_codec.name, supported_codec.params})) { |
| 445 | result.push_back(&supported_codec); |
| 446 | } |
| 447 | } |
| 448 | return result; |
| 449 | } |
| 450 |
| 451 | // If a decoder supports any H264 profile, it is implicitly assumed to also |
| 452 | // support constrained base line even though it's not explicitly listed. |
| 453 | void AddH264ConstrainedBaselineProfileToSupportedFormats( |
| 454 | std::vector<webrtc::SdpVideoFormat>* supported_formats) { |
| 455 | std::vector<webrtc::SdpVideoFormat> cbr_supported_formats; |
| 456 |
| 457 | // For any H264 supported profile, add the corresponding constrained baseline |
| 458 | // profile. |
| 459 | for (auto it = supported_formats->cbegin(); it != supported_formats->cend(); |
| 460 | ++it) { |
| 461 | if (it->name == cricket::kH264CodecName) { |
| 462 | const absl::optional<webrtc::H264ProfileLevelId> profile_level_id = |
| 463 | webrtc::ParseSdpForH264ProfileLevelId(it->parameters); |
| 464 | if (profile_level_id && |
| 465 | profile_level_id->profile != |
| 466 | webrtc::H264Profile::kProfileConstrainedBaseline) { |
| 467 | webrtc::SdpVideoFormat cbp_format = *it; |
| 468 | webrtc::H264ProfileLevelId cbp_profile = *profile_level_id; |
| 469 | cbp_profile.profile = webrtc::H264Profile::kProfileConstrainedBaseline; |
| 470 | cbp_format.parameters[cricket::kH264FmtpProfileLevelId] = |
| 471 | *webrtc::H264ProfileLevelIdToString(cbp_profile); |
| 472 | cbr_supported_formats.push_back(cbp_format); |
| 473 | } |
| 474 | } |
| 475 | } |
| 476 |
| 477 | size_t original_size = supported_formats->size(); |
| 478 | // ...if it's not already in the list. |
| 479 | std::copy_if(cbr_supported_formats.begin(), cbr_supported_formats.end(), |
| 480 | std::back_inserter(*supported_formats), |
| 481 | [supported_formats](const webrtc::SdpVideoFormat& format) { |
| 482 | return !format.IsCodecInList(*supported_formats); |
| 483 | }); |
| 484 |
| 485 | if (supported_formats->size() > original_size) { |
| 486 | RTC_LOG(LS_WARNING) << "Explicitly added H264 constrained baseline to list " |
| 487 | "of supported formats."; |
| 488 | } |
| 489 | } |
| 490 |
| 491 | Codec CreateAudioCodec(int id, |
| 492 | const std::string& name, |
| 493 | int clockrate, |
| 494 | size_t channels) { |
| 495 | return Codec(Codec::Type::kAudio, id, name, clockrate, channels); |
| 496 | } |
| 497 |
| 498 | Codec CreateAudioCodec(const webrtc::SdpAudioFormat& c) { |
| 499 | return Codec(c); |
| 500 | } |
| 501 |
| 502 | Codec CreateVideoCodec(const std::string& name) { |
| 503 | return CreateVideoCodec(0, name); |
| 504 | } |
| 505 |
| 506 | Codec CreateVideoCodec(int id, const std::string& name) { |
| 507 | Codec c(Codec::Type::kVideo, id, name, kVideoCodecClockrate); |
| 508 | if (absl::EqualsIgnoreCase(kH264CodecName, name)) { |
| 509 | // This default is set for all H.264 codecs created because |
| 510 | // that was the default before packetization mode support was added. |
| 511 | // TODO(hta): Move this to the places that create VideoCodecs from |
| 512 | // SDP or from knowledge of implementation capabilities. |
| 513 | c.SetParam(kH264FmtpPacketizationMode, "1"); |
| 514 | } |
| 515 | return c; |
| 516 | } |
| 517 |
| 518 | Codec CreateVideoCodec(const webrtc::SdpVideoFormat& c) { |
| 519 | return Codec(c); |
| 520 | } |
| 521 |
| 522 | } // namespace cricket |
| 523 |