Skip to content

Commit

Permalink
rtp: finish header length documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ollytom committed Aug 17, 2024
1 parent f7c6ae1 commit 3b1acc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rtp/rtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3b1acc9

Please sign in to comment.