Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -157,6 +157,8 @@ static int config_input(AVFilterLink *inlink) · 156 unmodified lines | |||
| 157 | if (s->rbs) | 157 | if (s->rbs) |
| 158 | rubberband_delete(s->rbs); | 158 | rubberband_delete(s->rbs); |
| 159 | s->rbs = rubberband_new(inlink->sample_rate, inlink->channels, opts, 1. / s->tempo, s->pitch); | 159 | s->rbs = rubberband_new(inlink->sample_rate, inlink->channels, opts, 1. / s->tempo, s->pitch); |
| 160 | if (!s->rbs) | ||
| 161 | return AVERROR(ENOMEM); | ||
| 160 | 162 | ||
| 161 | inlink->partial_buf_size = | 163 | inlink->partial_buf_size = |
| 162 | inlink->min_samples = | 164 | inlink->min_samples = |