Merge pull request #5870 from IshankGulati:VideoCapture-fix

This commit is contained in:
Alexander Alekhin 2016-06-30 13:20:51 +00:00
commit 639c8fc6d6

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++;