You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 byte0x80
. 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?The text was updated successfully, but these errors were encountered: