From e65d76fb947fb7570717595ee5b5924612c7e89d Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 12 Jun 2020 12:57:43 +0200 Subject: [PATCH] avfilter/af_rubberband: adjust nb_samples after every command --- libavfilter/af_rubberband.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/af_rubberband.c b/libavfilter/af_rubberband.c index 1dfd74422c..b42e67f09b 100644 --- a/libavfilter/af_rubberband.c +++ b/libavfilter/af_rubberband.c @@ -212,6 +212,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar rubberband_set_time_ratio(s->rbs, 1. / s->tempo); rubberband_set_pitch_scale(s->rbs, s->pitch); + s->nb_samples = rubberband_get_samples_required(s->rbs); return 0; }