This commit is contained in:
aler9
2020-11-28 11:02:41 +01:00
parent 7d1e3afff3
commit 0c292dec9d
2 changed files with 144 additions and 1 deletions

View File

@@ -186,7 +186,7 @@ func unmarshalBandwidth(value string) (*psdp.Bandwidth, error) {
experimental := strings.HasPrefix(parts[0], "X-")
if experimental {
parts[0] = strings.TrimPrefix(parts[0], "X-")
} else if i := indexOf(parts[0], []string{"CT", "AS", "RR"}); i == -1 {
} else if i := indexOf(parts[0], []string{"CT", "AS", "RR", "RS"}); i == -1 {
// Set according to currently registered with IANA
// https://tools.ietf.org/html/rfc4566#section-5.8
return nil, fmt.Errorf("%w `%v`", errSDPInvalidValue, parts[0])