Which version of opencv has ability to read GIF file?

I mean I adopted VideoCapture in python; but it failed in c++, maybe I have to rebulild the lib