yadif: redesign first and last 2 lines handling.