avfilter/vf_perspective: factor u cliping code