[xiph-commits] r10684 - trunk/speex/src

jm at svn.xiph.org jm at svn.xiph.org
Sun Jan 1 19:21:24 PST 2006


Author: jm
Date: 2006-01-01 19:21:21 -0800 (Sun, 01 Jan 2006)
New Revision: 10684

Modified:
   trunk/speex/src/speexenc.c
Log:
Fix for AMD64 (patch by Nicolas George)


Modified: trunk/speex/src/speexenc.c
===================================================================
--- trunk/speex/src/speexenc.c	2005-12-30 12:54:00 UTC (rev 10683)
+++ trunk/speex/src/speexenc.c	2006-01-02 03:21:21 UTC (rev 10684)
@@ -628,8 +628,9 @@
 
    /*Write header*/
    {
-
-      op.packet = (unsigned char *)speex_header_to_packet(&header, (int*)&(op.bytes));
+      int packet_size;
+      op.packet = (unsigned char *)speex_header_to_packet(&header, &packet_size);
+      op.bytes = packet_size;
       op.b_o_s = 1;
       op.e_o_s = 0;
       op.granulepos = 0;



More information about the commits mailing list