[Freeswitch-svn] [commit] r4206 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Mon Feb 12 14:35:09 EST 2007


Author: mikej
Date: Mon Feb 12 14:35:09 2007
New Revision: 4206

Modified:
   freeswitch/trunk/src/switch_rtp.c

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

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Mon Feb 12 14:35:09 2007
@@ -1194,7 +1194,7 @@
 	}
 
 	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);



More information about the Freeswitch-svn mailing list