avfilter/interlace: simplify code