I am getting "this file requires zlib support compiled in" error when i use the following code to open and display any SWF file . Please help !!

asked 2015-04-19 06:52:00 -0600

updated 2015-04-19 07:13:00 -0600

I am getting "this file requires zlib support compiled in" error when i use the following code to open and display any SWF file . Please help !!

int main(int, char**)
{
    VideoCapture cap; 
    cap.open("C:\\Users\\bhanu\\Desktop\\Artistist Site\\jaksic.swf");
    if(!cap.isOpened()) 
    {
    return -1;
    }

    Mat edges;
    namedWindow("edges",1);
    for(;;)
    {

        Mat frame;

        cap >> frame; // get a new frame from camera

        if(!frame.empty())
        {
        imshow("edges", frame);
        }
        if(waitKey(25) >= 0) break;
    }
    // the camera will be deinitialized automatically in VideoCapture destructor
    getch();
    return 0;
}
edit retag flag offensive close merge delete