avfilter: add lagfun filter