An HBO producer with a new show about to premiere next month has been sentenced to one year in prison for his role in the cover-up of a fatal overdose.