C89 friendliness
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Mon, 21 Dec 2009 05:06:12 +0000 (00:06 -0500)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Mon, 21 Dec 2009 05:06:12 +0000 (00:06 -0500)
libcelt/celt.c

index ee557f0..642099f 100644 (file)
@@ -1289,6 +1289,7 @@ static void celt_decode_lost(CELTDecoder * restrict st, celt_word16 * restrict p
       float exc[MAX_PERIOD];
       float ac[LPC_ORDER+1];
       float decay = 1;
+      float S1=0;
       celt_word32 mem[LPC_ORDER]={0};
 
       offset = MAX_PERIOD-pitch_index;
@@ -1331,7 +1332,6 @@ static void celt_decode_lost(CELTDecoder * restrict st, celt_word16 * restrict p
             decay = 1;
       }
 
-      float S1=0;
       /* Copy excitation, taking decay into account */
       for (i=0;i<len+st->mode->overlap;i++)
       {