From 0700a8270dd800e94c8dc420f11853a8041c0757 Mon Sep 17 00:00:00 2001 From: Saxon Date: Wed, 10 Apr 2019 16:56:32 +0930 Subject: [PATCH] protocol/rtp: updated parse.go function comments --- protocol/rtp/parse.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/protocol/rtp/parse.go b/protocol/rtp/parse.go index 121364cf..8642385c 100644 --- a/protocol/rtp/parse.go +++ b/protocol/rtp/parse.go @@ -51,14 +51,12 @@ func Payload(d []byte) ([]byte, error) { return d[payloadIdx:], nil } -// hasExt returns true if an extension is present in the RTP packet. The version -// must be compatible otherwise we panic. +// hasExt returns true if an extension is present in the RTP packet. func hasExt(d []byte) bool { return (d[0] & 0x10 >> 4) == 1 } -// csrcCount returns the number of CSRC fields. If the version is not compatible -// we panic. +// csrcCount returns the number of CSRC fields. func csrcCount(d []byte) int { return int(d[0] & 0x0f) }