Skip to content
Snippets Groups Projects
Verified Commit 58f3647a authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Fix misc warnings

parent 81624caf
No related branches found
No related tags found
No related merge requests found
Pipeline #4115 passed
...@@ -100,7 +100,7 @@ void usage(void) { ...@@ -100,7 +100,7 @@ void usage(void) {
} }
int main(int argc, char **argv) { int main(int argc, char **argv) {
int mode; int mode=0;
int plc_percent=0; int plc_percent=0;
FILE *fin, *fout; FILE *fin, *fout;
FILE *plc_file = NULL; FILE *plc_file = NULL;
...@@ -226,7 +226,7 @@ int main(int argc, char **argv) { ...@@ -226,7 +226,7 @@ int main(int argc, char **argv) {
if (feof(fin) || ret != FRAME_SIZE) break; if (feof(fin) || ret != FRAME_SIZE) break;
if (count % 2 == 0) { if (count % 2 == 0) {
if (plc_file != NULL) ret = fscanf(plc_file, "%d", &loss); if (plc_file != NULL) ret = fscanf(plc_file, "%d", &loss);
else loss = rand() < RAND_MAX*(float)plc_percent/100.f; else loss = rand() < (float)RAND_MAX*(float)plc_percent/100.f;
} }
if (loss) lpcnet_plc_conceal(net, pcm); if (loss) lpcnet_plc_conceal(net, pcm);
else lpcnet_plc_update(net, pcm); else lpcnet_plc_update(net, pcm);
......
...@@ -92,7 +92,6 @@ static void biquad(float *y, float mem[2], const float *x, const float *b, const ...@@ -92,7 +92,6 @@ static void biquad(float *y, float mem[2], const float *x, const float *b, const
void compute_frame_features(LPCNetEncState *st, const float *in) { void compute_frame_features(LPCNetEncState *st, const float *in) {
float aligned_in[FRAME_SIZE]; float aligned_in[FRAME_SIZE];
int i; int i;
float E = 0;
float Ly[NB_BANDS]; float Ly[NB_BANDS];
float follow, logMax; float follow, logMax;
kiss_fft_cpx X[FREQ_SIZE]; kiss_fft_cpx X[FREQ_SIZE];
...@@ -125,7 +124,6 @@ void compute_frame_features(LPCNetEncState *st, const float *in) { ...@@ -125,7 +124,6 @@ void compute_frame_features(LPCNetEncState *st, const float *in) {
Ly[i] = MAX16(logMax-8, MAX16(follow-2.5f, Ly[i])); Ly[i] = MAX16(logMax-8, MAX16(follow-2.5f, Ly[i]));
logMax = MAX16(logMax, Ly[i]); logMax = MAX16(logMax, Ly[i]);
follow = MAX16(follow-2.5f, Ly[i]); follow = MAX16(follow-2.5f, Ly[i]);
E += Ex[i];
} }
dct(st->features, Ly); dct(st->features, Ly);
st->features[0] -= 4; st->features[0] -= 4;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment