Browse Source

fix srtp header

pull/1442/head
Darien Raymond 6 years ago
parent
commit
9379b2f934
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 2
      transport/internet/headers/srtp/srtp.go

2
transport/internet/headers/srtp/srtp.go

@ -20,7 +20,7 @@ func (*SRTP) Size() int32 {
// Serialize implements PacketHeader.
func (s *SRTP) Serialize(b []byte) {
s.number++
binary.BigEndian.PutUint16(b, s.number)
binary.BigEndian.PutUint16(b, s.header)
binary.BigEndian.PutUint16(b[2:], s.number)
}

Loading…
Cancel
Save