mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
Merge pull request #5192 from D-Alex:master
This commit is contained in:
commit
30e6725006
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user