avfilter/avf_showspectrum: reduce number of operations