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

giles at motherfish-iii.xiph.org giles at motherfish-iii.xiph.org
Sun Feb 6 23:27:04 PST 2005


Author: giles
Date: 2005-02-06 23:27:04 -0800 (Sun, 06 Feb 2005)
New Revision: 8852

Modified:
   trunk/xiph-rtp/vorbisrtp.c
Log:
Swab the decode setup ident field as written in the packet.


Modified: trunk/xiph-rtp/vorbisrtp.c
===================================================================
--- trunk/xiph-rtp/vorbisrtp.c	2005-02-07 07:23:22 UTC (rev 8851)
+++ trunk/xiph-rtp/vorbisrtp.c	2005-02-07 07:27:04 UTC (rev 8852)
@@ -342,7 +342,7 @@
 {
     if (length < 5) return -1;
 
-    ((unsigned int *)packet)[0] = vorbheader->cbident;
+    ((unsigned int *)packet)[0] = htonl(vorbheader->cbident);
     packet[4] = (vorbheader -> continuation) << 7;
     packet[4] |= (vorbheader -> fragment) << 6;
     packet[4] |= (vorbheader -> reserved) << 5;



More information about the commits mailing list