Warner Bros Discovery posted a surprise second-quarter profit on Thursday, as the international rollout of HBO Max sent subscriber numbers climbing and blockbuster hits like "A Minecraft Movie" dominated the US box office.