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

Include "undefined" payload types in dynamic case #624

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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