Skip to content

Commit

Permalink
fix: Incorrect packet-deserialization bitmask
Browse files Browse the repository at this point in the history
  • Loading branch information
jneuendorf-i4h committed Oct 18, 2023
1 parent a5f07a2 commit 357c92d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Packet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class Packet {
if ((buff[0] & 0xc0) >> 6 !== 2) {
throw new Error(`invalid rtp packet ${buff[0] & 0xc0}`);
}
const cc = buff[0] & 0x1f;
const cc = buff[0] & 0x0f;
/* buff[1] = (M << 7 | PT) */
const payloadType = buff[1] & 0x7f;
/* buff[2, 3] = SN */
Expand Down

0 comments on commit 357c92d

Please sign in to comment.