A person exits the Viacom offices in New York.

Viacom, the owner of MTV, Comedy Central and Nickelodeon, beat estimates for quarterly revenue and profit on Thursday, as it posted rare growth in domestic advertising revenue after about five years of declines.

Viacom said domestic advertising revenue rose 6% to $976 million.