avisynth: Support video input from AviSynth 2.5 properly.