A Texas man filmed in a viral video licking a pint of ice cream and returning it to the shelf in a Walmart was sentenced to 30 days behind bars, according to a report.

D’Adrien Anderson, 24, was handed the sentence Wednesday over the August 2019 stunt in Port Arthur — even though surveillance footage from the store shows he did eventually grab the same tub of Blue Bell ice cream out of the freezer and purchased it, the Port Arthur News reported.

The clip — which didn’t show the part where he ultimately purchased the pint — racked up more than 157,000 views on Facebook before it was taken down.

Cops issued an arrest warrant for Anderson after Blue Bell Creameries replaced all of the ice cream in that display case at a cost of $1,565.

Anderson must also pay a fine of $1,000, on top of restitution totaling $1,565 to Blue Bell, as well as serving 180 days probation and 100 hours of community service.

The local Jefferson County District Attorney’s Office defended the charges as “appropriate.”

“Anderson’s actions caused public concerns about the safety and quality of consumer products offered for public consumption, impacted Blue Bell consumer confidence and caused the company financial loss,” the office said. “This type of activity will not be tolerated.”