Skip to content

Commit

Permalink
handle the case where the remote payload type is 0 (PCMU)
Browse files Browse the repository at this point in the history
  • Loading branch information
mklingb committed Mar 4, 2024
1 parent 45e3746 commit 451191f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion track_remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ func (t *TrackRemote) checkAndUpdateTrack(b []byte) error {
return errRTPTooShort
}

if payloadType := PayloadType(b[1] & rtpPayloadTypeBitmask); payloadType != t.PayloadType() {
payloadType := PayloadType(b[1] & rtpPayloadTypeBitmask)
if payloadType != t.PayloadType() || len(t.params.Codecs) == 0 {
t.mu.Lock()
defer t.mu.Unlock()

Expand Down

0 comments on commit 451191f

Please sign in to comment.