lavfi: split frame_count between input and output.