In return, Robert Aaron Vineberg pleaded guilty to a lesser charge, according to the Manhattan District Attorney's office. He will serve no jail time.

Vineberg will be sentenced October 14 to five years of probation, forfeiture of $1,284 confiscated from his apartment after his arrest and 25 days of community service, said Joan Vollero, director of communications for the Manhattan District Attorney's office. Vineberg also will attend an outpatient drug treatment program.

Vineberg, who is from Canada, could face immigration consequences in light of his felony plea to criminal possession of a controlled substance in the fourth degree, Vollero said. He was originally also charged with third-degree criminal possession of a controlled substance, which included intent to sell.

Philip Seymour Hoffman 16 photos

Philip Seymour Hoffman16 photos

Philip Seymour Hoffman: Master of film – Philip Seymour Hoffman appears in 2013's "The Hunger Games: Catching Fire." Hoffman played the role of Plutarch Heavensbee, the head gamemaker in the film. He was expected to appear in more films of the "Hunger Games" franchise, but he was found dead in his Manhattan apartment on February 2. Hoffman died of acute mixed drug intoxication, the New York medical examiner's office said. Click through the gallery for more highlights of his career.

Hide Caption

1 of 16

Philip Seymour Hoffman16 photos

Philip Seymour Hoffman: Master of film – Hoffman appears in 2012's "A Late Quartet." He reportedly learned how to play the violin during his role as a member of a string quartet. He told the Huffington Post that "I really got into the violin thing, because it's not acting, and I got off on that."

Hide Caption

2 of 16

Philip Seymour Hoffman16 photos

Philip Seymour Hoffman: Master of film – Hoffman appears with Joaquin Phoenix in "The Master" (2012). He received Oscar and Golden Globe nominations in the supporting actor category for his work in the film.

Hide Caption

3 of 16

Philip Seymour Hoffman16 photos

Philip Seymour Hoffman: Master of film – Hoffman plays manager Art Howe in the 2011 hit "Moneyball." The real Art Howe was reportedly not pleased with how he was portrayed in the film but told TMZ Sports he didn't blame Hoffman. "He was just playing the part he was given," Howe said.

Hide Caption

4 of 16

Philip Seymour Hoffman16 photos

Philip Seymour Hoffman: Master of film – Hoffman plays a DJ known as The Count in 2009's "Pirate Radio."

Hide Caption

5 of 16

Philip Seymour Hoffman16 photos

Philip Seymour Hoffman: Master of film – In 2008's "Doubt," Hoffman plays Father Brendan Flynn, a Catholic priest accused of having an inappropriate relationship with a male student. This was yet another film that got Hoffman supporting actor nominations for the Oscars and the Golden Globes.

Hide Caption

6 of 16

Philip Seymour Hoffman16 photos

Philip Seymour Hoffman: Master of film – Hoffman plays Owen Davian in 2006's "Mission: Impossible III." The actor told AOL at the time that while an action film was not usually his type of role, "it was just one of those things where all the ingredients seemed right."

Hide Caption

7 of 16

Philip Seymour Hoffman16 photos

Philip Seymour Hoffman: Master of film – Hoffman plays the title role in 2005's "Capote." He won the Oscar for best actor in a leading role for his performance as Truman Capote, who wrote "In Cold Blood." Hoffman also won a Golden Globe for the role.

Philip Seymour Hoffman: Master of film – Hoffman plays Lester Bangs in 2000's "Almost Famous." He delivers one of the film's most memorable scenes when he advises Patrick Fugit's character, William Miller, that "the only true currency in this bankrupt world is what we share with someone else when we're uncool."

Hide Caption

10 of 16

Philip Seymour Hoffman16 photos

Philip Seymour Hoffman: Master of film – Hoffman appears with Rebecca Pidgeon in 2000's "State and Main." He plays a screenwriter suffering from writer's block.

Hide Caption

11 of 16

Philip Seymour Hoffman16 photos

Philip Seymour Hoffman: Master of film – Jude Law and Hoffman share a scene in 1999's "The Talented Mr. Ripley." Hoffman was hailed as a scene stealer in the psychological thriller set in Italy.

JUST WATCHED

Coroner: Hoffman died of acute drug mix

MUST WATCH

JUST WATCHED

Four arrested in Hoffman death

MUST WATCH

Four arrested in Hoffman death 02:27

PLAY VIDEO

Vineberg was among four people arrested in Manhattan in the days after Hoffman's death.

Prosecutors said Vineberg had just under 50 small bags of heroin as well as packaging paraphernalia in his apartment during a raid. Additionally, 250 small bags of heroin were found in another of Vineberg's apartments in the same building, prosecutors said.

Vineberg, 58, was found to have the actor's phone number stored in his phone, a law enforcement official told CNN.

The city's health department said that 77% of drug overdose deaths in 2013 involved an opioid, including opioid analgesics (prescription painkillers), methadone or heroin. "On average, there is more than one fatal opioid overdose a day," according to the release.