From 17833733aa3776196423f8e9ece929a698ba0ac4 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Thu, 13 Dec 2012 21:54:54 -0600 Subject: [PATCH] fix for last commit - windows compiler warning --- src/switch_rtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index df4c63baa7..7b5b8e1ba7 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -2889,8 +2889,8 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t if (rtp_session->recv_msg.header.x) { /* header extensions */ rtp_session->recv_msg.ext = (switch_rtp_hdr_ext_t *) rtp_session->recv_msg.body; - rtp_session->recv_msg.ext->length = ntohs(rtp_session->recv_msg.ext->length); - rtp_session->recv_msg.ext->profile = ntohs(rtp_session->recv_msg.ext->profile); + rtp_session->recv_msg.ext->length = ntohs((uint16_t)rtp_session->recv_msg.ext->length); + rtp_session->recv_msg.ext->profile = ntohs((uint16_t)rtp_session->recv_msg.ext->profile); if (rtp_session->recv_msg.ext->length < SWITCH_RTP_MAX_BUF_LEN_WORDS) { rtp_session->recv_msg.ebody = rtp_session->recv_msg.body + (rtp_session->recv_msg.ext->length * 4) + 4;