Skip to content

Commit

Permalink
allow image media type and udptl protocol in sdp parser (webrtc-rs#497)
Browse files Browse the repository at this point in the history
Co-authored-by: mw-crown <[email protected]>
  • Loading branch information
1HPorange and mw-crown authored Oct 8, 2023
1 parent 01f0b05 commit 3d5ded8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sdp/src/description/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1206,9 +1206,11 @@ fn unmarshal_media_description<'a, R: io::BufRead + io::Seek>(
// <media>
// Set according to currently registered with IANA
// https://tools.ietf.org/html/rfc4566#section-5.14
// including "image", registered here:
// https://datatracker.ietf.org/doc/html/rfc6466
let i = index_of(
fields[0],
&["audio", "video", "text", "application", "message"],
&["audio", "video", "text", "application", "message", "image"],
);
if i == -1 {
return Err(Error::SdpInvalidValue(fields[0].to_owned()));
Expand All @@ -1231,7 +1233,7 @@ fn unmarshal_media_description<'a, R: io::BufRead + io::Seek>(
let i = index_of(
proto,
&[
"UDP", "RTP", "AVP", "SAVP", "SAVPF", "TLS", "DTLS", "SCTP", "AVPF",
"UDP", "RTP", "AVP", "SAVP", "SAVPF", "TLS", "DTLS", "SCTP", "AVPF", "udptl"
],
);
if i == -1 {
Expand Down

0 comments on commit 3d5ded8

Please sign in to comment.