avfilter/avf_showspectrum: properly handle EOF case