Revert "pc: make codec comparison for static codecs case-insensitive"
This reverts commit dcc3d046e2209a455fdf1c47045146f32204219b. Reason for revert: Speculative revert. Presumably breaks downstream project Original change's description: > pc: make codec comparison for static codecs case-insensitive > > BUG=webrtc:14211,webrtc:14140 > > Change-Id: Ib51de4c8961a4cf7c71aea27a55c115613296aae > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/266371 > Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com> > Reviewed-by: Harald Alvestrand <hta@webrtc.org> > Cr-Commit-Position: refs/heads/main@{#37295} Bug: webrtc:14211,webrtc:14140 Change-Id: Iead89fc597a634fe24a3d0e0f65f60215b62262d No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/266483 Owners-Override: Andrey Logvin <landrey@webrtc.org> Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com> Auto-Submit: Andrey Logvin <landrey@webrtc.org> Commit-Queue: Andrey Logvin <landrey@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37300}
This commit is contained in:
parent
3bd0f865f3
commit
e130f29aaa
@ -26,7 +26,6 @@
|
||||
|
||||
#include "absl/algorithm/container.h"
|
||||
#include "absl/strings/ascii.h"
|
||||
#include "absl/strings/match.h"
|
||||
#include "api/candidate.h"
|
||||
#include "api/crypto_params.h"
|
||||
#include "api/jsep_ice_candidate.h"
|
||||
@ -3602,7 +3601,7 @@ bool ParseRtpmapAttribute(absl::string_view line,
|
||||
VideoContentDescription* video_desc = media_desc->as_video();
|
||||
for (const cricket::VideoCodec& existing_codec : video_desc->codecs()) {
|
||||
if (!existing_codec.name.empty() && payload_type == existing_codec.id &&
|
||||
(!absl::EqualsIgnoreCase(encoding_name, existing_codec.name) ||
|
||||
(encoding_name != existing_codec.name ||
|
||||
clock_rate != existing_codec.clockrate)) {
|
||||
rtc::StringBuilder description;
|
||||
description
|
||||
@ -3634,7 +3633,7 @@ bool ParseRtpmapAttribute(absl::string_view line,
|
||||
AudioContentDescription* audio_desc = media_desc->as_audio();
|
||||
for (const cricket::AudioCodec& existing_codec : audio_desc->codecs()) {
|
||||
if (!existing_codec.name.empty() && payload_type == existing_codec.id &&
|
||||
(!absl::EqualsIgnoreCase(encoding_name, existing_codec.name) ||
|
||||
(encoding_name != existing_codec.name ||
|
||||
clock_rate != existing_codec.clockrate ||
|
||||
channels != existing_codec.channels)) {
|
||||
rtc::StringBuilder description;
|
||||
|
||||
@ -4699,21 +4699,6 @@ TEST_F(WebRtcSdpTest, FmtpBeforeRtpMap) {
|
||||
EXPECT_TRUE(SdpDeserialize(sdp, &jdesc_output));
|
||||
}
|
||||
|
||||
TEST_F(WebRtcSdpTest, StaticallyAssignedPayloadTypeWithDifferentCasing) {
|
||||
std::string sdp =
|
||||
"v=0\r\n"
|
||||
"o=- 11 22 IN IP4 127.0.0.1\r\n"
|
||||
"s=-\r\n"
|
||||
"t=0 0\r\n"
|
||||
"m=audio 49232 RTP/AVP 18\r\n"
|
||||
// Casing differs from statically assigned type, this should
|
||||
// still be accepted.
|
||||
"a=rtpmap:18 g729/8000\r\n";
|
||||
|
||||
JsepSessionDescription jdesc_output(kDummyType);
|
||||
EXPECT_TRUE(SdpDeserialize(sdp, &jdesc_output));
|
||||
}
|
||||
|
||||
// This tests parsing of SDP with unknown ssrc-specific attributes.
|
||||
TEST_F(WebRtcSdpTest, ParseIgnoreUnknownSsrcSpecificAttribute) {
|
||||
std::string sdp = kSdpString;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user