From 1f55ef5fbfd0028fbd939bb828a35b583114ba9a Mon Sep 17 00:00:00 2001 From: Aaron Shumway Date: Thu, 19 Sep 2024 15:05:16 -0500 Subject: [PATCH] Include "undefined" payload types in dynamic case This also cameras with non-standard payload types to still be used. --- pkg/format/format.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/format/format.go b/pkg/format/format.go index 657c43ae..a51aaad9 100644 --- a/pkg/format/format.go +++ b/pkg/format/format.go @@ -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