1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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_time_ratio(s->rbs, 1. / s->tempo);
rubberband_set_pitch_scale(s->rbs, s->pitch); rubberband_set_pitch_scale(s->rbs, s->pitch);
s->nb_samples = rubberband_get_samples_required(s->rbs);
return 0; return 0;
} }