resample: add initial padding explicitly