[FFmpeg-cvslog] avfilter/avf_showspectrum: increase padding size for low sample rates
Paul B Mahol
git at videolan.org
Fri Oct 5 16:24:34 EEST 2018
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Oct 5 15:23:02 2018 +0200| [50a2347b1949677d8ecfaf32369b4360a9cfa553] | committer: Paul B Mahol
avfilter/avf_showspectrum: increase padding size for low sample rates
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=50a2347b1949677d8ecfaf32369b4360a9cfa553
---
libavfilter/avf_showspectrum.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list