Переглянути джерело

Fix pixelformat for UVC cameras

Martijn Braam 1 рік тому
батько
коміт
c889483b9c
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      src/parse.c

+ 1 - 0
src/parse.c

@@ -477,6 +477,7 @@ uvc_create_modes(libmegapixels_camera *camera, int fd)
 					frameinterval.index++;
 					if (frameinterval.type == V4L2_FRMIVAL_TYPE_DISCRETE) {
 						libmegapixels_mode *mode = calloc(1, sizeof(libmegapixels_mode));
+						mode->format = format;
 						mode->v4l_pixfmt = fmtdesc.pixelformat;
 						mode->width = (int) framesize.discrete.width;
 						mode->height = (int) framesize.discrete.height;