Move timefilter code from lavf to lavd.