mirror of
https://github.com/livekit/livekit.git
synced 2026-07-19 11:36:33 +00:00
Do not compare payload type before bind (#2775)
This commit is contained in:
@@ -316,7 +316,7 @@ func (b *Buffer) Write(pkt []byte) (n int, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
if rtpPacket.Version != 2 || rtpPacket.PayloadType != b.payloadType {
|
||||
if rtpPacket.Version != 2 || (b.payloadType != 0 && rtpPacket.PayloadType != b.payloadType) {
|
||||
b.logger.Warnw(
|
||||
"invalid RTP packet", nil,
|
||||
"version", rtpPacket.Version,
|
||||
|
||||
Reference in New Issue
Block a user