shithub: aacdec

Download patch

ref: 7d6e0c3877a7381ed4a9af79d40e4ae34fb3cc51
parent: ce712bf57a00df57dcb548bf4dfe649289be1e27
author: menno <menno>
date: Sun Jan 27 04:10:46 EST 2002

bugfix: variables not initialized before possible usage

--- a/libfaad/decoder.c
+++ b/libfaad/decoder.c
@@ -16,7 +16,7 @@
 ** along with this program; if not, write to the Free Software 
 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 **
-** $Id: decoder.c,v 1.6 2002/01/20 16:57:55 menno Exp $
+** $Id: decoder.c,v 1.7 2002/01/27 09:10:46 menno Exp $
 **/
 
 #include <stdlib.h>
@@ -262,6 +262,10 @@
 
     void *sample_buffer;
 
+    ele = 0;
+    channels = 0;
+    ch_ele = 0;
+
     memset(hInfo, 0, sizeof(faacDecFrameInfo));
 
     /* initialize the bitstream */
@@ -277,10 +281,6 @@
          * so not needed to actually do it.
          */
     }
-
-    ele = 0;
-    channels = 0;
-    ch_ele = 0;
 
 #ifdef ANALYSIS
     dbg_count = 0;