[xiph-commits] r11411 - trunk/xiph-rtp

lu_zero at svn.xiph.org lu_zero at svn.xiph.org
Thu May 18 06:35:09 PDT 2006


Author: lu_zero
Date: 2006-05-18 06:35:06 -0700 (Thu, 18 May 2006)
New Revision: 11411

Modified:
   trunk/xiph-rtp/xiph_rtp.c
Log:
endianess and networkness: thanks to wei for spotting it

Modified: trunk/xiph-rtp/xiph_rtp.c
===================================================================
--- trunk/xiph-rtp/xiph_rtp.c	2006-05-17 18:07:09 UTC (rev 11410)
+++ trunk/xiph-rtp/xiph_rtp.c	2006-05-18 13:35:06 UTC (rev 11411)
@@ -208,7 +208,7 @@
 		sendrtp (xr, packet, fs->stacksize + 4);
 
 		/*  Swap headers back to host order  */
-		xr->headers.sequence = htons (xr->headers.sequence);
+		xr->headers.sequence = ntohs (xr->headers.sequence);
 		xr->headers.timestamp = ntohl (xr->headers.timestamp);
 
 		if (fs->stackcount == 1) 



More information about the commits mailing list