[FFmpeg-soc] [soc]: r3719 - eac3/eac3dec.c

jbr subversion at mplayerhq.hu
Sun Sep 7 20:24:57 CEST 2008


Author: jbr
Date: Sun Sep  7 20:24:57 2008
New Revision: 3719

Log:
set wrapflag[] to zero at init instead of using memset()

Modified:
   eac3/eac3dec.c

Modified: eac3/eac3dec.c
==============================================================================
--- eac3/eac3dec.c	(original)
+++ eac3/eac3dec.c	Sun Sep  7 20:24:57 2008
@@ -41,12 +41,11 @@ void ff_eac3_apply_spectral_extension(AC
 {
     int bin, bnd, ch;
     int copyindex, insertindex;
-    int wrapflag[17], num_copy_sections, copy_sizes[17];
+    int wrapflag[17]={0,}, num_copy_sections, copy_sizes[17];
 
     /* Set copy index mapping table. Set wrap flags to apply a notch filter at
        wrap points later on. */
     copyindex = s->spx_copy_start_freq;
-    memset(wrapflag, 0, sizeof(wrapflag));
     num_copy_sections = 0;
     for (bnd = 0; bnd < s->num_spx_bands; bnd++) {
         int bandsize = s->spx_band_sizes[bnd];



More information about the FFmpeg-soc mailing list