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

jm at svn.xiph.org jm at svn.xiph.org
Sat Apr 8 07:11:47 PDT 2006


Author: jm
Date: 2006-04-08 07:11:43 -0700 (Sat, 08 Apr 2006)
New Revision: 11108

Modified:
   trunk/speex/libspeex/jitter.c
   trunk/speex/libspeex/nb_celp.c
Log:
removed unused variables and cleaned up some non-C89ness


Modified: trunk/speex/libspeex/jitter.c
===================================================================
--- trunk/speex/libspeex/jitter.c	2006-04-08 03:07:17 UTC (rev 11107)
+++ trunk/speex/libspeex/jitter.c	2006-04-08 14:11:43 UTC (rev 11108)
@@ -128,7 +128,6 @@
 {
    int i,j;
    spx_int32_t arrival_margin;
-   //fprintf (stderr, "p");
    /*fprintf (stderr, "put packet %d %d\n", timestamp, span);*/
    if (jitter->reset_state)
    {
@@ -231,7 +230,6 @@
 int jitter_buffer_get(JitterBuffer *jitter, char *out, int *length, spx_uint32_t *current_timestamp, spx_uint32_t *returned_timestamp, int *span)
 {
    int i, j;
-   int ret;
    float late_ratio_short;
    float late_ratio_long;
    float ontime_ratio_short;
@@ -386,7 +384,6 @@
       /* Remove packet */
       speex_free(jitter->buf[i]);
       jitter->buf[i] = NULL;
-      //fprintf (stderr, "r");
       /* Set timestamp and span (if requested) */
       if (current_timestamp)
          *current_timestamp = jitter->pointer_timestamp;
@@ -438,8 +435,6 @@
 
 void speex_jitter_init(SpeexJitter *jitter, void *decoder, int sampling_rate)
 {
-   int i;
-   
    jitter->dec = decoder;
    speex_decoder_ctl(decoder, SPEEX_GET_FRAME_SIZE, &jitter->frame_size);
 

Modified: trunk/speex/libspeex/nb_celp.c
===================================================================
--- trunk/speex/libspeex/nb_celp.c	2006-04-08 03:07:17 UTC (rev 11107)
+++ trunk/speex/libspeex/nb_celp.c	2006-04-08 14:11:43 UTC (rev 11108)
@@ -695,7 +695,7 @@
    for (sub=0;sub<st->nbSubframes;sub++)
    {
       int   offset;
-      spx_sig_t *sp, *sw, *exc;
+      spx_sig_t *sw, *exc;
       int pitch;
       int response_bound = st->subframeSize;
 #ifdef EPIC_48K
@@ -1713,7 +1713,6 @@
       int offset;
       spx_word16_t *sp;
       spx_sig_t *exc;
-      spx_word16_t tmp;
 
       /* Offset relative to start of frame */
       offset = st->subframeSize*sub;



More information about the commits mailing list