[FFmpeg-cvslog] avfilter/af_speechnorm: check return value of av_frame_make_writable()
Paul B Mahol
git at videolan.org
Wed Sep 8 22:45:20 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Sep 8 20:59:08 2021 +0200| [5db1e07a62e29da4c212a4a4536c570d06f3d102] | committer: Paul B Mahol
avfilter/af_speechnorm: check return value of av_frame_make_writable()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5db1e07a62e29da4c212a4a4536c570d06f3d102
---
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);
More information about the ffmpeg-cvslog
mailing list