Skip to content

Commit

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

case payloadType >= 96 && payloadType <= 127:
// Some cameras use payload types in the "undefined" ranges of 35-71 and 77-95,
// so include those along with the "dynamic" range of 96-127.
case (payloadType >= 35 && payloadType <= 71) || (payloadType >= 77 && payloadType <= 127):
switch {
// video

Expand Down

0 comments on commit 9957426

Please sign in to comment.