[Speex-dev] [PATCH] warning: missing initializer for SPEEX_STEREO_STATE_INIT

Jean-Marc Valin Jean-Marc.Valin at USherbrooke.ca
Tue Jun 13 01:46:27 PDT 2006


Thanks for the fix. It's now in svn.

	Jean-Marc

Le lundi 12 juin 2006 à 19:59 +0200, Alfred E. Heggestad a écrit :
> hi
> 
> this code gives me a warning:
> 
>      SpeexStereoState stereo = SPEEX_STEREO_STATE_INIT;
> 
> 
> 
> modules/speex/mod.c: In function 'alloc':
> modules/speex/mod.c:61: warning: missing initializer
> modules/speex/mod.c:61: warning: (near initialization for 
> 'stereo_init.reserved1')
> 
> 
> would it be possible to add this patch to you svn ?
> 
> 
> Index: include/speex/speex_stereo.h
> ===================================================================
> --- include/speex/speex_stereo.h        (revision 11563)
> +++ include/speex/speex_stereo.h        (working copy)
> @@ -53,7 +53,7 @@
>   } SpeexStereoState;
> 
>   /** Initialization value for a stereo state */
> -#define SPEEX_STEREO_STATE_INIT {1,.5,1,1}
> +#define SPEEX_STEREO_STATE_INIT {1,.5,1,1,0,0}
> 
>   /** Transforms a stereo frame into a mono frame and stores intensity 
> stereo info in 'bits' */
>   void speex_encode_stereo(float *data, int frame_size, SpeexBits *bits);
> 
> 
> 
> /alfred
> 


More information about the Speex-dev mailing list