mirror of https://bitbucket.org/ausocean/av.git
protocol/rtcp/parse.go: updated comment for ParseTimestamp(...)
This commit is contained in:
parent
ecc0ab8664
commit
d7d205a7a9
|
@ -38,9 +38,9 @@ type Timestamp struct {
|
||||||
Fraction uint32
|
Fraction uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
// Timestamp gets the timestamp from a receiver report and returns it as the most
|
// ParseTimestamp gets the timestamp from a receiver report and returns it as
|
||||||
// significant word, and the least significant word. If the given bytes do not
|
// a Timestamp as defined above. If the given bytes do not represent a valid
|
||||||
// represent a valid receiver report, an error is returned.
|
// receiver report, an error is returned.
|
||||||
func ParseTimestamp(buf []byte) (Timestamp, error) {
|
func ParseTimestamp(buf []byte) (Timestamp, error) {
|
||||||
err := checkPacket(buf)
|
err := checkPacket(buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue