From b5c018276f2126b40edc3f5173022e500a42852e Mon Sep 17 00:00:00 2001 From: Saxon Date: Sun, 7 Apr 2019 14:54:24 +0930 Subject: [PATCH] protocol/rtp: commented rtpVer const and made defaultHeadSize 12 rather than 4*3 --- protocol/rtp/rtp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/rtp/rtp.go b/protocol/rtp/rtp.go index 81278236..73f6f15b 100644 --- a/protocol/rtp/rtp.go +++ b/protocol/rtp/rtp.go @@ -37,8 +37,8 @@ import ( ) const ( - rtpVer = 2 - defaultHeadSize = 3 * 4 // Header size of an rtp packet. + rtpVer = 2 // Version of RTP that this package is compatible with. + defaultHeadSize = 12 // Header size of an rtp packet. defPayloadSize = sendSize // Default payload size for the rtp packet. defPktSize = defaultHeadSize + defPayloadSize // Default packet size is header size + payload size. optionalFieldIdx = 12 // This is the idx of optional fields including CSRC and extension header in an RTP packet.