diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-06-03 12:26:43 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-06-03 12:26:43 +0200 |
commit | 9add1786ad4c9549e133ba7a79c22d9c4b19acf3 (patch) | |
tree | 46bf287a647d4f6a1393e5696d26ec59e802ffca | |
parent | d0bf1aa3c5f7668a817ef7e315442514c9dd9f77 (diff) | |
download | ffmpeg-streaming-9add1786ad4c9549e133ba7a79c22d9c4b19acf3.zip ffmpeg-streaming-9add1786ad4c9549e133ba7a79c22d9c4b19acf3.tar.gz |
avfilter/avf_showspectrum: avoid overwritting text
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-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 c86cb73..bf9f3c5 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -1190,7 +1190,7 @@ static int showspectrumpic_request_frame(AVFilterLink *outlink) for (x = 0; x < w; x+=80) { dst[x] = 200; } - for (x = 0; x < w; x += 80) { + for (x = 0; x < w - 79; x += 80) { float hertz = x * (inlink->sample_rate / 2) / (float)(1 << (int)ceil(log2(w))); char *units; |