diff --git a/src/rtppacketizer.cpp b/src/rtppacketizer.cpp index 3ca6677ca..e39c8bb3e 100644 --- a/src/rtppacketizer.cpp +++ b/src/rtppacketizer.cpp @@ -97,9 +97,9 @@ message_ptr RtpPacketizer::packetize(shared_ptr 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((min >> 4) & 0xFF), + static_cast(((min & 0xF) << 4) | ((max >> 8) & 0xF)), + static_cast(max & 0xFF) }; extHeader->writeOneByteHeader(offset, rtpConfig->playoutDelayId, (byte *)data, 3);