Skip to content

Parse SDP encoding names and fmtp names case-insensitively - #518

Merged
lo-simon merged 1 commit into
sony:masterfrom
garethsb:bugfix/sdp-encoding-fmtp-case
Aug 12, 2026
Merged

Parse SDP encoding names and fmtp names case-insensitively#518
lo-simon merged 1 commit into
sony:masterfrom
garethsb:bugfix/sdp-encoding-fmtp-case

Conversation

@garethsb

@garethsb garethsb commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Treat RTP encoding names and fmtp parameter names as case-insensitive when parsing SDP, per RFC 4855.
  • Keep media_type::operator== exact for stored/configured values; add public equals_media_type for SDP-derived comparisons (receivers, validation, JPEG XS gate, node example).
  • Move find_fmtp / equals_encoding_name into sdp_utils.cpp so Boost stays out of the headers.

Test plan

  • nmos-cpp-test testSdpEncodingNameAndFmtpCaseInsensitive
  • nmos-cpp-test 'testSdp*'
  • testValidateSdpParameters, JPEG XS, and related SDP cases
  • CI on this PR

RFC 4855 treats RTP encoding names and fmtp parameter names as
case-insensitive. Accept mixed-case rtpmap/fmtp while keeping
operator== exact for stored and configured media types, and expose
equals_media_type for SDP-derived comparisons.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>

@lo-simon lo-simon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@lo-simon
lo-simon merged commit dac770c into sony:master Aug 12, 2026
10 checks passed
@garethsb
garethsb deleted the bugfix/sdp-encoding-fmtp-case branch August 12, 2026 16:38
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.

2 participants