1
0
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:
Paul B Mahol 2019-10-17 11:02:02 +02:00
parent 1e35519fe0
commit fb7b222b91

View File

@ -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;
}