[CELT-dev] [PATCH] C89 compatible variable declaration

thorvald at natvig.com thorvald at natvig.com
Sun Dec 20 17:12:31 PST 2009


From: Thorvald Natvig <slicer at users.sourceforge.net>

---
 libcelt/celt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libcelt/celt.c b/libcelt/celt.c
index ee557f0..2fca959 100644
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -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.f;
       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++)
       {
-- 
1.6.4




More information about the celt-dev mailing list