You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/avf_showcwt: no need for big forward FFT with small sample rates
This commit is contained in:
@@ -709,7 +709,7 @@ static int config_output(AVFilterLink *outlink)
|
|||||||
s->nb_channels = inlink->ch_layout.nb_channels;
|
s->nb_channels = inlink->ch_layout.nb_channels;
|
||||||
s->old_pts = AV_NOPTS_VALUE;
|
s->old_pts = AV_NOPTS_VALUE;
|
||||||
s->eof_pts = AV_NOPTS_VALUE;
|
s->eof_pts = AV_NOPTS_VALUE;
|
||||||
s->nb_consumed_samples = 65536;
|
s->nb_consumed_samples = FFMIN(65536, inlink->sample_rate);
|
||||||
|
|
||||||
s->input_sample_count = s->nb_consumed_samples;
|
s->input_sample_count = s->nb_consumed_samples;
|
||||||
s->input_padding_size = 1 << (32 - ff_clz(s->input_sample_count));
|
s->input_padding_size = 1 << (32 - ff_clz(s->input_sample_count));
|
||||||
|
Reference in New Issue
Block a user