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) }