avfilter/avf_showspectrum: set hop_size for showspectrumpic

Fixes invalid spikes in video output.
pull/388/head
Paul B Mahol 2 years ago
parent 459527108a
commit 3e288dbf56
  1. 1
      libavfilter/avf_showspectrum.c

@ -1770,6 +1770,7 @@ static int showspectrumpic_request_frame(AVFilterLink *outlink)
spf = s->win_size * (s->samples / ((s->win_size * sz) * ceil(s->samples / (float)(s->win_size * sz))));
spf = FFMAX(1, spf);
s->hop_size = spf;
spb = (s->samples / (spf * sz)) * spf;

Loading…
Cancel
Save