Skip to content

Commit

Permalink
Add "undefined" payload types to dynamic case
Browse files Browse the repository at this point in the history
This also cameras with non-standard payload types to still be used.
  • Loading branch information
Aaron Shumway committed Sep 19, 2024
1 parent 2023bf1 commit 6e1b864
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/format/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ func Unmarshal(mediaType string, payloadType uint8, rtpMap string, fmtp map[stri
* dynamic payload types
**/

case payloadType >= 96 && payloadType <= 127:
// The condition has been changed from originally only accepting the range 96 - 127
// which is defined by the rtp protocol definition as type "dynamic"
// However for use in our system, we have included the additional ranges of 35 - 71
// and 77 - 95. Which are defined as an "undefined type" by the RTP definition.
// case payloadType >= 96 && payloadType <= 127:
case (payloadType >= 35 && payloadType <= 71) || (payloadType >= 77 && payloadType <= 127):
switch {
// video

Expand Down

0 comments on commit 6e1b864

Please sign in to comment.