diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-10-05 15:23:02 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-10-05 15:23:02 +0200 |
commit | 50a2347b1949677d8ecfaf32369b4360a9cfa553 (patch) | |
tree | aed8b245ee7b46bca511c88740d6704c7a0daed1 /libavfilter | |
parent | fe447c0609cda8a0110a7b83834b87aa2bc123a4 (diff) | |
download | ffmpeg-50a2347b1949677d8ecfaf32369b4360a9cfa553.tar.gz |
avfilter/avf_showspectrum: increase padding size for low sample rates
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avf_showspectrum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index bbe42ba7c7..f5e8561713 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -446,7 +446,7 @@ static int config_output(AVFilterLink *outlink) outlink->sample_aspect_ratio = (AVRational){1,1}; if (s->legend) { - s->start_x = log10(inlink->sample_rate) * 25; + s->start_x = (log10(inlink->sample_rate) + 1) * 25; s->start_y = 64; outlink->w += s->start_x * 2; outlink->h += s->start_y * 2; |