Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTP Bits in Reverse Order #1

Open
boushley opened this issue May 17, 2016 · 0 comments
Open

RTP Bits in Reverse Order #1

boushley opened this issue May 17, 2016 · 0 comments

Comments

@boushley
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant