Brazilian football legend Pele has left hospital in Sao Paulo after being treated for an infection.

He joked that he would be ready to play for Brazil at the 2016 Olympics in Rio.