diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-09-08 20:59:08 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-09-08 21:44:54 +0200 |
commit | 5db1e07a62e29da4c212a4a4536c570d06f3d102 (patch) | |
tree | cdb79472efd15301b9fba93dc9d05add09cefd5e | |
parent | ccd95cb248562a4ad7eeba0aa8aff992a1daa625 (diff) | |
download | ffmpeg-5db1e07a62e29da4c212a4a4536c570d06f3d102.tar.gz |
avfilter/af_speechnorm: check return value of av_frame_make_writable()
-rw-r--r-- | libavfilter/af_speechnorm.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |