[Speex-dev] [PATCH] warning: missing initializer for
SPEEX_STEREO_STATE_INIT
Alfred E. Heggestad
aeh at db.org
Mon Jun 12 10:59:46 PDT 2006
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
--
Alfred E. Heggestad <aeh at db.org>
Web: http://aeh.db.org/
VoIP: <sip:alfredh at symbianos.org>
Phone: +47 21 98 71 20
Mobile: +47 98 23 67 05
Skype: alfredheggestad
More information about the Speex-dev
mailing list