Commit 50a2347b authored by Paul B Mahol's avatar Paul B Mahol

avfilter/avf_showspectrum: increase padding size for low sample rates

parent fe447c06
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment