While I do not know the exact figures, there still is a good possibility for Apple to gain
They pay for H.264 license to distribute their decoder, but collect royalty for their patents from every other codec vendor, device maker and commercial video distributor in the world.