streaming

Media streaming and broadcast systems in Go
Log | Files | Refs | README | LICENSE

commit 3b1acc9102e2f96d3b40224dee1007a820c89675
parent f7c6ae15d84416d1c6a4d34c1c5a35a35ecbb612
Author: Oliver Lowe <o@olowe.co>
Date:   Wed, 14 Aug 2024 20:37:06 +1000

rtp: finish header length documentation

Diffstat:
Mrtp/rtp.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/rtp/rtp.go b/rtp/rtp.go @@ -127,6 +127,8 @@ var ErrNoPayload = errors.New("no payload") // - 1 byte (version, padding, extension, contrib count) // - 1 byte (marker + type) // - 2 bytes (sequence) +// - 4 bytes (timestamp) +// - 4 bytes (sync source) const minHeaderLength = 12 func Unmarshal(data []byte, p *Packet) error {