Skip to content

Commit

Permalink
Add casts
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarrac committed Apr 1, 2024
1 parent 2f13f9e commit a17ef4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rtppacketizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ message_ptr RtpPacketizer::packetize(shared_ptr<binary> payload, bool mark) {

// 12 bits for min + 12 bits for max
char data[] = {
(min >> 4) & 0xFF,
((min & 0xF) << 4) | ((max >> 8) & 0xF),
max & 0xFF
static_cast<char>((min >> 4) & 0xFF),
static_cast<char>(((min & 0xF) << 4) | ((max >> 8) & 0xF)),
static_cast<char>(max & 0xFF)
};

extHeader->writeOneByteHeader(offset, rtpConfig->playoutDelayId, (byte *)data, 3);
Expand Down

0 comments on commit a17ef4e

Please sign in to comment.