videoio(v4l2): fix build due missing V4L2_CID_ISO_SENSITIVITY
authorAlexander Alekhin <alexander.alekhin@intel.com>
Thu, 20 Dec 2018 13:28:12 +0000 (16:28 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Thu, 20 Dec 2018 13:28:12 +0000 (16:28 +0300)
modules/videoio/src/cap_v4l.cpp

index db85693..661e4b3 100644 (file)
@@ -237,6 +237,11 @@ make & enjoy!
 #include <sys/videoio.h>
 #endif
 
+// https://github.com/opencv/opencv/issues/13335
+#ifndef V4L2_CID_ISO_SENSITIVITY
+#define V4L2_CID_ISO_SENSITIVITY (V4L2_CID_CAMERA_CLASS_BASE+23)
+#endif
+
 /* Defaults - If your board can do better, set it here.  Set for the most common type inputs. */
 #define DEFAULT_V4L_WIDTH  640
 #define DEFAULT_V4L_HEIGHT 480