[FFmpeg-cvslog] avfilter/af_arnndn: make sure that vad_output nb_neurons is always 1

Paul B Mahol git at videolan.org
Thu Oct 17 12:03:52 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Oct 17 11:02:02 2019 +0200| [fb7b222b91825e6cd692d354b213c192d4e974a9] | committer: Paul B Mahol

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fb7b222b91825e6cd692d354b213c192d4e974a9
---

 libavfilter/af_arnndn.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavfilter/af_arnndn.c b/libavfilter/af_arnndn.c
index 781d0dc934..7688b31b0c 100644
--- a/libavfilter/af_arnndn.c
+++ b/libavfilter/af_arnndn.c
@@ -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;
 }
 



More information about the ffmpeg-cvslog mailing list