From 130b9569b95b37685f7bbd9fa6aba84db9085e51 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 4 May 2006 20:55:34 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1359 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 7ad294dd4e..01d1ab0efd 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -745,10 +745,12 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ switch_set_flag(rtp_session, SWITCH_RTP_FLAG_MINI); ts = mini->header.ts; - memmove(rtp_session->recv_msg.body, mini->body, bytes - sizeof(srtp_mini_hdr_t)); + bytes -= sizeof(srtp_mini_hdr_t); + memmove(rtp_session->recv_msg.body, mini->body, bytes); rtp_session->recv_msg.header.ts = ts; rtp_session->recv_msg.header.seq = htons(rtp_session->rseq++); rtp_session->recv_msg.header.pt = rtp_session->rpayload; + bytes += rtp_header_len; } else { if (rtp_session->recv_msg.header.version == 0 && rtp_session->ice_user) { handle_ice(rtp_session, (void *) &rtp_session->recv_msg, bytes);