Media conglomerate Viacom, Inc. on Thursday reported a turnaround to profit in the second quarter, as lower revenues in the Filmed Entertainment and Media Networks segments were more than offset by lower expenses. Both revenue and adjusted earnings per share for the quarter beat analysts’ expectations.