A convicted child abuser who killed his 7-month-old son has been sentenced to 25 years to life in state prison.