mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avfilter/avf_showspectrum: avoid overwritting text
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
d0bf1aa3c5
commit
9add1786ad
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user