diff --git a/src/switch_rtp.c b/src/switch_rtp.c index ff9c22b96a..4949e99303 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -712,7 +712,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ } if (bytes > 0) { - int effective_size = bytes - sizeof(srtp_mini_hdr_t); + uint32_t effective_size = (uint32_t)(bytes - sizeof(srtp_mini_hdr_t)); if (rtp_session->recv_msg.header.pt == RTP_MAGIC_NUMBER) { if (!switch_test_flag(rtp_session, SWITCH_RTP_FLAG_MINI)) {