avfilter/avf_showspectrum: properly calculate w factor