Two men have been jailed for their roles in preparing to sell meat deemed unfit for consumption and meant as pet food to shoppers.