mirror of
https://github.com/pion/webrtc.git
synced 2025-09-26 19:21:12 +08:00
Fix panic of rtx attributes
This commit is contained in:
@@ -454,6 +454,9 @@ func (r *RTPReceiver) receiveForRtx(ssrc SSRC, rsid string, streamInfo *intercep
|
||||
continue
|
||||
}
|
||||
|
||||
if attributes == nil {
|
||||
attributes = make(interceptor.Attributes)
|
||||
}
|
||||
attributes.Set(AttributeRtxPayloadType, b[1]&0x7F)
|
||||
attributes.Set(AttributeRtxSequenceNumber, binary.BigEndian.Uint16(b[2:4]))
|
||||
attributes.Set(AttributeRtxSsrc, binary.BigEndian.Uint32(b[8:12]))
|
||||
|
Reference in New Issue
Block a user