From d6e352f1d2150ae5f6ddb5494e2242211bc479cd Mon Sep 17 00:00:00 2001 From: sbarrac <46637437+sbarrac@users.noreply.github.com> Date: Fri, 19 Apr 2024 20:47:35 +0100 Subject: [PATCH] Update src/rtppacketizer.cpp Co-authored-by: Paul-Louis Ageneau --- src/rtppacketizer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rtppacketizer.cpp b/src/rtppacketizer.cpp index e39c8bb3e..27205184b 100644 --- a/src/rtppacketizer.cpp +++ b/src/rtppacketizer.cpp @@ -96,13 +96,13 @@ message_ptr RtpPacketizer::packetize(shared_ptr payload, bool mark) { uint16_t max = rtpConfig->playoutDelayMax & 0xFFF; // 12 bits for min + 12 bits for max - char data[] = { - static_cast((min >> 4) & 0xFF), - static_cast(((min & 0xF) << 4) | ((max >> 8) & 0xF)), - static_cast(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; } }