U.S. cable company Comcasts NBC Universal unit is buying Hollywood movie studio Dreamworks animation.