diff --git a/group/group.go b/group/group.go index 5d97916..ef13e26 100644 --- a/group/group.go +++ b/group/group.go @@ -181,12 +181,9 @@ func (g *Group) API() (*webrtc.API, error) { func fmtpValue(fmtp, key string) string { fields := strings.Split(fmtp, ";") for _, f := range fields { - kv := strings.SplitN(f, "=", 2) - if len(kv) != 2 { - continue - } - if kv[0] == key { - return kv[1] + k, v, found := strings.Cut(f, "=") + if found && k == key { + return v } } return ""