avfilter/vf_traspose: move switch out of loop