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:
parent
49d07642f3
commit
e65d76fb94
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user