From 5651f185ff6db1768bc50927bc802187530e5bd0 Mon Sep 17 00:00:00 2001 From: uvos Date: Sat, 18 Nov 2023 14:26:31 +0100 Subject: [PATCH] use V4L2_PIX_FMT_MJPEG instead of V4L2_PIX_FMT_JPEG --- webcam.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webcam.cpp b/webcam.cpp index 85e238e..3891528 100644 --- a/webcam.cpp +++ b/webcam.cpp @@ -89,7 +89,7 @@ Webcam::Webcam(const string& device, int width, int height, bool mjpeg) : device(device), xres(width), yres(height), - format(mjpeg ? V4L2_PIX_FMT_JPEG : V4L2_PIX_FMT_YUYV) + format(mjpeg ? V4L2_PIX_FMT_MJPEG : V4L2_PIX_FMT_YUYV) { open_device(); init_device();