Add a video test file and add inputFF tests.
 + fix inputFF resampler bugs revealed by the tests.