Skip to content

Commit

Permalink
Merge pull request #25 from jneuendorf-i4h/23-incorrect-deserializati…
Browse files Browse the repository at this point in the history
…on-bitmask-for-cc

fix: Incorrect packet-deserialization bitmask
  • Loading branch information
1995parham authored Oct 18, 2023
2 parents a5f07a2 + 357c92d commit 99e5760
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 99e5760

Please sign in to comment.