diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-06-12 12:57:43 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-06-13 00:21:07 +0200 |
commit | e65d76fb947fb7570717595ee5b5924612c7e89d (patch) | |
tree | 4493b2161dd2032b432acb7763333b06d3a8109e /libavfilter | |
parent | 49d07642f30ea05f6098203e6cb6b85563b170f8 (diff) | |
download | ffmpeg-e65d76fb947fb7570717595ee5b5924612c7e89d.tar.gz |
avfilter/af_rubberband: adjust nb_samples after every command
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_rubberband.c | 1 |
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; } |