integration with mot-encoder
Fix pad encoding, constant length x-pad
Remove small compilation warning