mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 10:52:46 +00:00
type check
This commit is contained in:
1 parent
67cafe402a
commit
15f10f3590
1 file changed
+3
@@ -1050,6 +1050,9 @@ func (t *PCTransport) AddRemoteTrackAndNegotiate(
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
if aptPayload < 0 || aptPayload > 255 {
|
||||
continue
|
||||
}
|
||||
|
||||
if !slices.Contains(disabledPayloads, webrtc.PayloadType(aptPayload)) {
|
||||
enabledCodecs = append(enabledCodecs, c)
|
||||
|
||||
Reference in new issue
Block a user