Skip to content

Commit 3d5ded8

Browse files
1HPorangemw-crown
andauthored
allow image media type and udptl protocol in sdp parser (webrtc-rs#497)
Co-authored-by: mw-crown <[email protected]>
1 parent 01f0b05 commit 3d5ded8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sdp/src/description/session.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,9 +1206,11 @@ fn unmarshal_media_description<'a, R: io::BufRead + io::Seek>(
12061206
// <media>
12071207
// Set according to currently registered with IANA
12081208
// https://tools.ietf.org/html/rfc4566#section-5.14
1209+
// including "image", registered here:
1210+
// https://datatracker.ietf.org/doc/html/rfc6466
12091211
let i = index_of(
12101212
fields[0],
1211-
&["audio", "video", "text", "application", "message"],
1213+
&["audio", "video", "text", "application", "message", "image"],
12121214
);
12131215
if i == -1 {
12141216
return Err(Error::SdpInvalidValue(fields[0].to_owned()));
@@ -1231,7 +1233,7 @@ fn unmarshal_media_description<'a, R: io::BufRead + io::Seek>(
12311233
let i = index_of(
12321234
proto,
12331235
&[
1234-
"UDP", "RTP", "AVP", "SAVP", "SAVPF", "TLS", "DTLS", "SCTP", "AVPF",
1236+
"UDP", "RTP", "AVP", "SAVP", "SAVPF", "TLS", "DTLS", "SCTP", "AVPF", "udptl"
12351237
],
12361238
);
12371239
if i == -1 {

0 commit comments

Comments
 (0)