mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
avfilter/af_arnndn: make sure that vad_output nb_neurons is always 1
This commit is contained in:
parent
1e35519fe0
commit
fb7b222b91
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user