png-image-compatibility

This commit is contained in:
Ishank gulati 2015-12-23 23:37:32 +05:30
parent afdbd855ee
commit e607a85df6

View File

@ -124,7 +124,7 @@ bool CvCapture_Images::grabFrame()
}
cvReleaseImage(&frame);
frame = cvLoadImage(str, CV_LOAD_IMAGE_ANYDEPTH | CV_LOAD_IMAGE_ANYCOLOR);
frame = cvLoadImage(str, CV_LOAD_IMAGE_UNCHANGED);
if( frame )
currentframe++;