]> git.sesse.net Git - vlc/commitdiff
* equalizer : [0] isn't cool, use a define.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 24 Jul 2004 11:12:39 +0000 (11:12 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 24 Jul 2004 11:12:39 +0000 (11:12 +0000)
modules/audio_filter/equalizer.c

index 43bf73ef3574439fb76de80a13d2a86a36224e68..0032f6b8df6bcc4226a825d5ff7364881da601ed 100644 (file)
@@ -91,7 +91,7 @@ vlc_module_end();
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
-
+#define EQZ_BANDS_MAX 10
 typedef struct aout_filter_sys_t
 {
     /* Filter static config */
@@ -210,7 +210,7 @@ typedef struct
         float f_alpha;
         float f_beta;
         float f_gamma;
-    } band[0];
+    } band[EQZ_BANDS_MAX];
 
 } eqz_config_t;
 
@@ -253,7 +253,7 @@ typedef struct
     char *psz_name;
     int  i_band;
     float f_preamp;
-    float f_amp[0];
+    float f_amp[EQZ_BANDS_MAX];
 } eqz_preset_t;
 
 static const eqz_preset_t eqz_preset_flat_10b=