mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
avfilter/af_arnndn: make sure that vad_output nb_neurons is always 1
This commit is contained in:
parent
1e35519fe0
commit
fb7b222b91
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue