Commit fb7b222b authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_arnndn: make sure that vad_output nb_neurons is always 1

parent 1e35519f
......@@ -300,6 +300,11 @@ static RNNModel *rnnoise_model_from_file(FILE *f)
INPUT_DENSE(denoise_output);
INPUT_DENSE(vad_output);
if (vad_output->nb_neurons != 1) {
rnnoise_model_free(ret);
return NULL;
}
return ret;
}
......
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