summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showspectrum.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-10-05 15:23:02 +0200
committerPaul B Mahol <onemda@gmail.com>2018-10-05 15:23:02 +0200
commit50a2347b1949677d8ecfaf32369b4360a9cfa553 (patch)
treeaed8b245ee7b46bca511c88740d6704c7a0daed1 /libavfilter/avf_showspectrum.c
parentfe447c0609cda8a0110a7b83834b87aa2bc123a4 (diff)
avfilter/avf_showspectrum: increase padding size for low sample rates
Diffstat (limited to 'libavfilter/avf_showspectrum.c')
-rw-r--r--libavfilter/avf_showspectrum.c2
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;