avfilter/af_rubberband: adjust nb_samples after every command

This commit is contained in:
Paul B Mahol 2020-06-12 12:57:43 +02:00
parent 49d07642f3
commit e65d76fb94

View File

@ -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;
}