Home Hashim Amla played a match-winning innings