Skip to content

RTP Bits in Reverse Order #1

@boushley

Description

@boushley

I seem to be running into a problem where the bits in my RTP packet bytes are the reverse order of what you expect.

In rtp.go you say Version is buf[0] & 0x03, however I'm receiving the byte 0x80. Which means I need to set Version to (buf[0] & (0x03 << 6)) >> 6 since the 2 bits we care about are the first two in the byte, not the smallest two. This appears to continue on for at least the remainder of parsing for the first byte.

Am I missing a setting on PacketConn that lets you reverse the order of the bits within the bytes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions