sdp: remove old workaround

Removes an old workaround for a firefox issue that was fixed in 2014.

BUG=webrtc:3212

Change-Id: I3ad71e29249908d840474cf3ee99a094c9201f6d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178381
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Cr-Commit-Position: refs/heads/master@{#31584}
This commit is contained in:
Philipp Hancke
2020-06-29 15:49:12 +02:00
committed by Commit Bot
parent 2b4d2f3561
commit 67123ffa85

View File

@ -2631,12 +2631,6 @@ bool ParseMediaDescription(
std::vector<int> payload_types; std::vector<int> payload_types;
if (cricket::IsRtpProtocol(protocol)) { if (cricket::IsRtpProtocol(protocol)) {
for (size_t j = 3; j < fields.size(); ++j) { for (size_t j = 3; j < fields.size(); ++j) {
// TODO(wu): Remove when below bug is fixed.
// https://bugzilla.mozilla.org/show_bug.cgi?id=996329
if (fields[j].empty() && j == fields.size() - 1) {
continue;
}
int pl = 0; int pl = 0;
if (!GetPayloadTypeFromString(line, fields[j], &pl, error)) { if (!GetPayloadTypeFromString(line, fields[j], &pl, error)) {
return false; return false;