提交 43e50048 authored 作者: Michael Jerris's avatar Michael Jerris

ntohs takes u_short, and we are in a 16 bit bitfield, so we can cast this.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4206 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 272b78be
......@@ -1194,7 +1194,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session, void *data, uint32_t data
}
rtp_session->last_write_ts = ntohl(send_msg->header.ts);
rtp_session->last_write_seq = ntohs(send_msg->header.seq);
rtp_session->last_write_seq = ntohs((u_short)send_msg->header.seq);
if (send) {
switch_socket_sendto(rtp_session->sock, rtp_session->remote_addr, 0, (void*)send_msg, &bytes);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论