Commit a23327c1 authored by Ghislain MARY's avatar Ghislain MARY

Fix compilation errors caused by variables declared in the middle of a function.

parent 7a11d31f
......@@ -59,7 +59,6 @@ static void resample_data_destroy(ResampleData *obj){
}
static void resample_init(MSFilter *obj){
obj->data=resample_data_new();
#ifdef SPEEX_LIB_SET_CPU_FEATURES
int cpuFeatures = 0;
#ifdef __arm__
......@@ -77,7 +76,7 @@ static void resample_init(MSFilter *obj){
#else
ms_message("speex_lib_ctl does not support SPEEX_LIB_CPU_FEATURE_NEON");
#endif
obj->data=resample_data_new();
}
static void resample_uninit(MSFilter *obj){
......
......@@ -47,6 +47,9 @@ typedef struct SpeexEncState{
static void enc_init(MSFilter *f){
SpeexEncState *s=(SpeexEncState *)ms_new(SpeexEncState,1);
#ifdef SPEEX_LIB_SET_CPU_FEATURES
int cpuFeatures = 0;
#endif
s->rate=8000;
s->bitrate=-1;
s->maxbitrate=-1;
......@@ -62,7 +65,6 @@ static void enc_init(MSFilter *f){
f->data=s;
#ifdef SPEEX_LIB_SET_CPU_FEATURES
int cpuFeatures = 0;
#ifdef __ARM_NEON__
#ifdef ANDROID
if (android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment