avfilter: port pullup filter from libmpcodecs