[xiph-commits] r9306 - branches/rel-1-0-branch/speex/libspeex

jm at motherfish-iii.xiph.org jm at motherfish-iii.xiph.org
Mon May 23 20:06:52 PDT 2005


Author: jm
Date: 2005-05-23 20:06:50 -0700 (Mon, 23 May 2005)
New Revision: 9306

Modified:
   branches/rel-1-0-branch/speex/libspeex/stereo.c
Log:
oops, fixed the _int() version of the stereo encoding/decoding


Modified: branches/rel-1-0-branch/speex/libspeex/stereo.c
===================================================================
--- branches/rel-1-0-branch/speex/libspeex/stereo.c	2005-05-24 03:02:43 UTC (rev 9305)
+++ branches/rel-1-0-branch/speex/libspeex/stereo.c	2005-05-24 03:06:50 UTC (rev 9306)
@@ -84,6 +84,8 @@
    for (i=0;i<2*frame_size;i++)
       float_data[i] = data[i];
    speex_encode_stereo(float_data, frame_size, bits);
+   for (i=0;i<frame_size;i++)
+      data[i] = float_data[i];
 }
 
 void speex_decode_stereo(float *data, int frame_size, SpeexStereoState *stereo)
@@ -120,6 +122,8 @@
    int i;
    /* FIXME: Do some dynamic allocation here */
    float float_data[2*MAX_IN_SAMPLES];
+   for (i=0;i<2*frame_size;i++)
+      float_data[i] = data[i];
    speex_decode_stereo(float_data, frame_size, stereo);
    for (i=0;i<frame_size;i++)
    {



More information about the commits mailing list