vf_pad: fix mixed code and declarations