Skip to content

Commit

Permalink
rnnoise: Fix compilation not working on latest gcc
Browse files Browse the repository at this point in the history
The latest gcc spits out an error about calloc parameters that are
in the wrong order.
  • Loading branch information
cg2121 authored and RytoEX committed May 16, 2024
1 parent 7824e16 commit f60d6bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/obs-filters/rnnoise/src/denoise.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ int rnnoise_init(DenoiseState *st, RNNModel *model) {
st->rnn.model = model;
else
st->rnn.model = &rnnoise_model_orig;
st->rnn.vad_gru_state = calloc(sizeof(float), st->rnn.model->vad_gru_size);
st->rnn.noise_gru_state = calloc(sizeof(float), st->rnn.model->noise_gru_size);
st->rnn.denoise_gru_state = calloc(sizeof(float), st->rnn.model->denoise_gru_size);
st->rnn.vad_gru_state = calloc(st->rnn.model->vad_gru_size, sizeof(float));
st->rnn.noise_gru_state = calloc(st->rnn.model->noise_gru_size, sizeof(float));
st->rnn.denoise_gru_state = calloc(st->rnn.model->denoise_gru_size, sizeof(float));
return 0;
}

Expand Down

0 comments on commit f60d6bc

Please sign in to comment.