From 499c832da3d6dfc4bcc7655dfb0c7b6701fe0270 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 11 Jan 2008 22:16:20 +0000 Subject: [PATCH] type tweaks for windows build. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7182 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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 30a1af09ca..81bdbfe55c 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -868,7 +868,7 @@ static void do_2833(switch_rtp_t *rtp_session) switch_core_timer_check(&rtp_session->timer); offset = rtp_session->timer.samplecount - rtp_session->last_write_samplecount; if (offset > 0) { - rtp_session->dtmf_data.timestamp_dtmf += offset; + rtp_session->dtmf_data.timestamp_dtmf = (uint32_t)(rtp_session->dtmf_data.timestamp_dtmf + offset); } } @@ -1087,7 +1087,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ if (!switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PASS_RFC2833) && rtp_session->recv_msg.header.pt == rtp_session->te) { unsigned char *packet = (unsigned char *) rtp_session->recv_msg.body; int end = packet[1] & 0x80 ? 1 : 0; - int duration = (packet[2] << 8) + packet[3]; + uint16_t duration = (packet[2] << 8) + packet[3]; char key = switch_rfc2833_to_char(packet[0]); uint16_t in_digit_seq = ntohs((uint16_t) rtp_session->recv_msg.header.seq);