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

fix RtpPacket and RtcpPacket bitmask setter logic #209

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

SteveAyre
Copy link
Contributor

@SteveAyre SteveAyre commented Jun 18, 2024

The PayloadType setter uses header[offset] |= value & bitmask to set the value.

However this only sets the bits in the new value, it does not unset existing bits not in the value. While the setter works when the current header byte is zero, it fails if the RTP header already has a payload type value to be changed.

The same bug also appears to affect ReceptionReportCount and CsrcCount.

previous logic only worked on zeroed data, it could not update existing packets
@PhyxionNL PhyxionNL merged commit 7ca0301 into dotpcap:master Aug 4, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants