Remove RTP payload number from Opus (max)ptime attributes

Closes #266
master
Ingo Bauersachs 9 years ago
parent 789022ba3b
commit b72cbffa37

@ -456,8 +456,21 @@ public static MediaDescription createMediaDescription(
while (iter.hasNext())
{
Map.Entry<String, String> ntry = iter.next();
Attribute adv = sdpFactory.createAttribute(ntry.getKey(),
payloadType + " " + ntry.getValue());
Attribute adv;
switch (ntry.getKey())
{
// RFC7587, Sect. 7 says there's no payload number for ptime
case "ptime":
case "maxptime":
adv = sdpFactory.createAttribute(ntry.getKey(),
ntry.getValue());
break;
default:
adv = sdpFactory.createAttribute(ntry.getKey(),
payloadType + " " + ntry.getValue());
break;
}
mediaAttributes.add(adv);
}

Loading…
Cancel
Save