diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-07-10 10:24:52 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-07-10 18:57:08 +0200 |
commit | 2c4fa968b60d64dc257286c7a808c26848f7bf82 (patch) | |
tree | d9975632ced3cc7774be9936c8d306da3c41524d /libavfilter/avf_showcwt.c | |
parent | a92dbeb9ae520d39069381be528c5e8d4756da5f (diff) | |
download | ffmpeg-2c4fa968b60d64dc257286c7a808c26848f7bf82.tar.gz |
avfilter/avf_showcwt: use av_rescale()
Diffstat (limited to 'libavfilter/avf_showcwt.c')
-rw-r--r-- | libavfilter/avf_showcwt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c index ff2c06fb7a..505c66e3ab 100644 --- a/libavfilter/avf_showcwt.c +++ b/libavfilter/avf_showcwt.c @@ -590,7 +590,7 @@ static int config_output(AVFilterLink *outlink) s->input_sample_count = s->nb_consumed_samples; s->hop_size = s->nb_consumed_samples >> 1; s->input_padding_size = 65536; - s->output_padding_size = FFMAX(16, s->input_padding_size * s->pps / inlink->sample_rate); + s->output_padding_size = FFMAX(16, av_rescale(s->input_padding_size, s->pps, inlink->sample_rate)); outlink->w = s->w; outlink->h = s->h; |