Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions unmarshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ func unmarshalMediaDescription(lex *lexer) (stateFn, error) { //nolint:cyclop
"UDT",
"IX",
"MRCPv2",
"FEC",
) {
return nil, fmt.Errorf("%w `%v`", errSDPInvalidNumericValue, field)
}
Expand Down
9 changes: 9 additions & 0 deletions unmarshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ const (
MediaTCPTLSMRCPv2 = TimingSDP +
"m=application 1544 TCP/TLS/MRCPv2 1\r\n"

MediaFECSDP = TimingSDP +
"m=application 50178 UDP/FEC *\r\n" +
"a=fec-repair-flow:encoding-id=8; fssi=E:1234,S:0,m:7\r\n" +
"a=repair-window:500ms\r\n"

CanonicalUnmarshalSDP = "v=0\r\n" +
"o=jdoe 2890844526 2890842807 IN IP4 10.47.16.5\r\n" +
"s=SDP Seminar\r\n" +
Expand Down Expand Up @@ -333,6 +338,10 @@ func TestRoundTrip(t *testing.T) {
Name: "MediaTCPTLSMRCPv2",
SDP: MediaTCPTLSMRCPv2,
},
{
Name: "MediaFEC",
SDP: MediaFECSDP,
},
} {
test := test
t.Run(test.Name, func(t *testing.T) {
Expand Down
Loading