diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 560647daf9..7c0dbcc2e0 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -4206,7 +4206,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session, if (send_msg) { bytes = datalen; - m = send_msg->header.m; + m = (uint8_t) send_msg->header.m; if (flags && *flags & SFF_RFC2833) { send_msg->header.pt = rtp_session->te;