From 9379b2f9347112ce817c79dd287cfbbc19cc980c Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 30 Nov 2018 17:37:38 +0100 Subject: [PATCH] fix srtp header --- transport/internet/headers/srtp/srtp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/internet/headers/srtp/srtp.go b/transport/internet/headers/srtp/srtp.go index f4145291..cf881cbe 100644 --- a/transport/internet/headers/srtp/srtp.go +++ b/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) }