mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/af_rubberband: check if rbs is valid
This commit is contained in:
parent
21d1bb00c4
commit
a89ec33fd5
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue