Skip to content

Commit

Permalink
Update src/rtppacketizer.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Paul-Louis Ageneau <[email protected]>
  • Loading branch information
sbarrac and paullouisageneau authored Apr 19, 2024
1 parent a17ef4e commit d6e352f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/rtppacketizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ message_ptr RtpPacketizer::packetize(shared_ptr<binary> payload, bool mark) {
uint16_t max = rtpConfig->playoutDelayMax & 0xFFF;

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

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

0 comments on commit d6e352f

Please sign in to comment.