Merge pull request #5192 from D-Alex:master

This commit is contained in:
Alexander Alekhin 2015-08-14 13:55:28 +00:00
commit 30e6725006

View File

@ -129,6 +129,9 @@ CV_IMPL CvCapture * cvCreateCameraCapture (int index)
// interpret preferred interface (0 = autodetect)
int pref = (index / 100) * 100;
// remove pref from index
index -= pref;
// local variable to memorize the captured device
CvCapture *capture = 0;