Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow image media type and udptl protocol in sdp parser #497

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

1HPorange
Copy link
Contributor

No description provided.

@@ -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"
Copy link
Member

@rainliu rainliu Sep 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, your link refers to UDPTL over DTLS, which is something different (and something I've never seen in the wild).

Every implementation I have ever encountered used lowercase "udptl", which seems to be confirmed here: https://www.rfc-editor.org/rfc/rfc5347.html#section-2.5.2

The RFC however seems to recommend matching case-insensitive. Like I said, I have never seen anything other than "udptl" in lowercase, so I'll let you decide what you prefer.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it.

Please fix clippy/fmt error.

@codecov
Copy link

codecov bot commented Sep 23, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.07% ⚠️

Comparison is base (71157ba) 61.56% compared to head (ce7e3c0) 61.49%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #497      +/-   ##
==========================================
- Coverage   61.56%   61.49%   -0.07%     
==========================================
  Files         529      529              
  Lines       48839    48839              
  Branches    12361    12355       -6     
==========================================
- Hits        30066    30035      -31     
- Misses       9601     9620      +19     
- Partials     9172     9184      +12     
Files Changed Coverage Δ
sdp/src/description/session.rs 63.84% <ø> (-0.46%) ⬇️

... and 19 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rainliu rainliu merged commit 3d5ded8 into webrtc-rs:master Oct 8, 2023
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants