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?
I seem to be running into a problem where the bits in my
RTPpacket bytes are the reverse order of what you expect.In rtp.go you say Version is
buf[0] & 0x03,however I'm receiving the byte0x80. Which means I need to set Version to(buf[0] & (0x03 << 6)) >> 6since 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
PacketConnthat lets you reverse the order of the bits within the bytes?