Commit c9bfc2ec authored by Niels Möller's avatar Niels Möller Committed by Commit Bot

Replace cricket::CodecNamesEq with base::EqualsCaseInsensitiveASCII

About to be deleted, see
https://webrtc-review.googlesource.com/c/src/+/107303

Bug: None
Change-Id: I1c92b62d7007ccf47ca13c5b22571530d4168494
Reviewed-on: https://chromium-review.googlesource.com/c/1293611
Commit-Queue: Niels Möller <nisse@chromium.org>
Reviewed-by: default avatarSergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601887}
parent 1ab22a18
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <memory> #include <memory>
#include "base/command_line.h" #include "base/command_line.h"
#include "base/strings/string_util.h"
#include "build/build_config.h" #include "build/build_config.h"
#include "content/public/common/content_features.h" #include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h" #include "content/public/common/content_switches.h"
...@@ -113,11 +114,13 @@ RTCVideoEncoderFactory::~RTCVideoEncoderFactory() {} ...@@ -113,11 +114,13 @@ RTCVideoEncoderFactory::~RTCVideoEncoderFactory() {}
webrtc::VideoEncoder* RTCVideoEncoderFactory::CreateVideoEncoder( webrtc::VideoEncoder* RTCVideoEncoderFactory::CreateVideoEncoder(
const cricket::VideoCodec& codec) { const cricket::VideoCodec& codec) {
for (size_t i = 0; i < supported_codecs_.size(); ++i) { for (size_t i = 0; i < supported_codecs_.size(); ++i) {
if (!cricket::CodecNamesEq(codec.name, supported_codecs_[i].name)) if (!base::EqualsCaseInsensitiveASCII(codec.name,
supported_codecs_[i].name)) {
continue; continue;
}
// Check H264 profile. // Check H264 profile.
using webrtc::H264::ParseSdpProfileLevelId; using webrtc::H264::ParseSdpProfileLevelId;
if (cricket::CodecNamesEq(codec.name.c_str(), cricket::kH264CodecName) && if (base::EqualsCaseInsensitiveASCII(codec.name, cricket::kH264CodecName) &&
ParseSdpProfileLevelId(codec.params)->profile != ParseSdpProfileLevelId(codec.params)->profile !=
ParseSdpProfileLevelId(supported_codecs_[i].params)->profile) { ParseSdpProfileLevelId(supported_codecs_[i].params)->profile) {
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment