aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-06-12 12:57:43 +0200
committerPaul B Mahol <onemda@gmail.com>2020-06-13 00:21:07 +0200
commite65d76fb947fb7570717595ee5b5924612c7e89d (patch)
tree4493b2161dd2032b432acb7763333b06d3a8109e /libavfilter
parent49d07642f30ea05f6098203e6cb6b85563b170f8 (diff)
downloadffmpeg-e65d76fb947fb7570717595ee5b5924612c7e89d.tar.gz
avfilter/af_rubberband: adjust nb_samples after every command
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/af_rubberband.c1
1 files changed, 1 insertions, 0 deletions
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;
}