avfilter/signalstats: localize a few variables