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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if rtpPacket.Version != 2 || rtpPacket.PayloadType != b.payloadType {
|
if rtpPacket.Version != 2 || (b.payloadType != 0 && rtpPacket.PayloadType != b.payloadType) {
|
||||||
b.logger.Warnw(
|
b.logger.Warnw(
|
||||||
"invalid RTP packet", nil,
|
"invalid RTP packet", nil,
|
||||||
"version", rtpPacket.Version,
|
"version", rtpPacket.Version,
|
||||||
|
|||||||
Reference in New Issue
Block a user