[xiph-commits] r12730 - trunk/speex/libspeex

jm at svn.xiph.org jm at svn.xiph.org
Sun Mar 11 07:29:10 PDT 2007


Author: jm
Date: 2007-03-11 07:29:07 -0700 (Sun, 11 Mar 2007)
New Revision: 12730

Modified:
   trunk/speex/libspeex/fftwrap.c
   trunk/speex/libspeex/jitter.c
Log:
fixed some warnings.


Modified: trunk/speex/libspeex/fftwrap.c
===================================================================
--- trunk/speex/libspeex/fftwrap.c	2007-03-11 14:22:35 UTC (rev 12729)
+++ trunk/speex/libspeex/fftwrap.c	2007-03-11 14:29:07 UTC (rev 12730)
@@ -162,7 +162,6 @@
 
 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out)
 {
-   int i;
    int shift;
    struct kiss_config *t = (struct kiss_config *)table;
    shift = maximize_range(in, in, 32000, t->N);
@@ -187,7 +186,6 @@
 
 void spx_ifft(void *table, spx_word16_t *in, spx_word16_t *out)
 {
-   int i;
    struct kiss_config *t = (struct kiss_config *)table;
    kiss_fftri2(t->backward, in, out);
 }

Modified: trunk/speex/libspeex/jitter.c
===================================================================
--- trunk/speex/libspeex/jitter.c	2007-03-11 14:22:35 UTC (rev 12729)
+++ trunk/speex/libspeex/jitter.c	2007-03-11 14:29:07 UTC (rev 12730)
@@ -244,7 +244,8 @@
 /** Get one packet from the jitter buffer */
 int jitter_buffer_get(JitterBuffer *jitter, JitterBufferPacket *packet, spx_uint32_t *start_offset)
 {
-   int i, j;
+   int i;
+   unsigned int j;
    float late_ratio_short;
    float late_ratio_long;
    float ontime_ratio_short;
@@ -438,7 +439,7 @@
 /* Let the jitter buffer know it's the right time to adjust the buffering delay to the network conditions */
 int jitter_buffer_update_delay(JitterBuffer *jitter, JitterBufferPacket *packet, spx_uint32_t *start_offset)
 {
-   int i, j;
+   int i;
    float late_ratio_short;
    float late_ratio_long;
    float ontime_ratio_short;



More information about the commits mailing list