An American film, 70s(?), set at the turn of the 19th/20th Century.

The film starts with a firm of undertakers waiting on an execution in a US prison. They have told the comdemned man if he signs his body over to them, they can bring him back to life by injecting him with adrenilin. They must do this within a few minutes of his death for it to work.

They rush him to the funeral parlour where of course it fails. It is a comedy, not a horror pic........anyone?