mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
Block a user