Commit a89ec33f authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_rubberband: check if rbs is valid

parent 21d1bb00
......@@ -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 =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment