[FFmpeg-cvslog] avfilter/af_rubberband: check if rbs is valid
Paul B Mahol
git at videolan.org
Mon Apr 29 16:22:10 EEST 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Apr 29 13:47:46 2019 +0200| [a89ec33fd5915afdeee2f094b73fd44b6a577e7b] | committer: Paul B Mahol
avfilter/af_rubberband: check if rbs is valid
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a89ec33fd5915afdeee2f094b73fd44b6a577e7b
---
libavfilter/af_rubberband.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/af_rubberband.c b/libavfilter/af_rubberband.c
index ea6f4ff2c9..767e50f1bb 100644
--- a/libavfilter/af_rubberband.c
+++ b/libavfilter/af_rubberband.c
@@ -157,6 +157,8 @@ static int config_input(AVFilterLink *inlink)
if (s->rbs)
rubberband_delete(s->rbs);
s->rbs = rubberband_new(inlink->sample_rate, inlink->channels, opts, 1. / s->tempo, s->pitch);
+ if (!s->rbs)
+ return AVERROR(ENOMEM);
inlink->partial_buf_size =
inlink->min_samples =
More information about the ffmpeg-cvslog
mailing list