Former Glee star Mark Salling has officially pleaded guilty to possessing child pornography.
US media reports that the children featured in the 50,000 images found in the actor’s possession were between three and five years of age.
The actor, who played Noah ‘Puck’ Puckerman on the hit Fox show, struck a plea deal in the case in October.
Under the deal, prosecutors agreed that the appropriate sentence for Salling would be four to seven years in prison, with 20 years of supervised release, according to US reports.
He would have faced up to 20 years under a maximum sentence. A judge will sentence the star, who is currently on bail, in March.
He will be required to register as a sex offender and will not be allowed to live within view of any school yards, parks, public swimming pools, playgrounds, video arcades, or any other places that are regularly visited by people under the age of 18.
Police were reportedly tipped off about the images on his computer by one of his ex-girlfriends.
He was arrested in December 2015 and later released on bail for $20,000.
The case was later passed onto federal authorities when police realised the severity of the images.
Lieutenant Andrea Grossman, commander of the LAPD Internet Crimes Against Children Task Force, said at the time: “It doesn’t matter who you are or what you do, if you hurt a child you will be held accountable.”
She added: “These images are more than photographs, they are child abuse.”
“Mark is focused on accepting responsibility and attempting to atone for his conduct,” his lawyer told People in a statement on Monday.