From 5db1e07a62e29da4c212a4a4536c570d06f3d102 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 8 Sep 2021 20:59:08 +0200 Subject: [PATCH] avfilter/af_speechnorm: check return value of av_frame_make_writable() --- libavfilter/af_speechnorm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_speechnorm.c b/libavfilter/af_speechnorm.c index 0d1c6bd25d..fa56276e1d 100644 --- a/libavfilter/af_speechnorm.c +++ b/libavfilter/af_speechnorm.c @@ -410,7 +410,9 @@ static int filter_frame(AVFilterContext *ctx) in = ff_bufqueue_get(&s->queue); - av_frame_make_writable(in); + ret = av_frame_make_writable(in); + if (ret < 0) + return ret; s->filter_channels[s->link](ctx, in, in->nb_samples);