shithub: opus

Download patch

ref: f43488cdc2e6b776fc228f074051f095b9b6509f
parent: 033e60910425621d5d7eb342ca4c655c9fcb9da5
author: Jean-Marc Valin <[email protected]>
date: Fri Jun 5 07:07:31 EDT 2009

Fix non-C90 declaration after statement

--- a/libcelt/modes.c
+++ b/libcelt/modes.c
@@ -444,6 +444,8 @@
 
 void celt_mode_destroy(CELTMode *mode)
 {
+   int i;
+   const celt_int16_t *prevPtr = NULL;
    if (mode == NULL)
    {
       celt_warning("NULL passed to celt_mode_destroy");
@@ -463,8 +465,6 @@
    }
    mode->marker_start = MODEFREED;
 #ifndef STATIC_MODES
-   int i;
-   const celt_int16_t *prevPtr = NULL;
    if (mode->bits!=NULL)
    {
       for (i=0;i<mode->nbEBands;i++)