From 0464c31b3eb629ad8db8eaed159c715e35cd9e57 Mon Sep 17 00:00:00 2001 From: Ruslan Sayfutdinov Date: Fri, 1 Mar 2024 21:53:38 +0000 Subject: [PATCH] Fix bytesperline calculation for libcamera0.2 --- device/libcamera/buffer_list.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/device/libcamera/buffer_list.cc b/device/libcamera/buffer_list.cc index 05dfee1..d885a19 100644 --- a/device/libcamera/buffer_list.cc +++ b/device/libcamera/buffer_list.cc @@ -92,6 +92,8 @@ int libcamera_buffer_list_open(buffer_list_t *buf_list) } if (buf_list->fmt.bytesperline > 0) { configuration.stride = buf_list->fmt.bytesperline; + } else { + configuration.stride = 0; } if (buf_list->fmt.nbufs > 0) { configuration.bufferCount = buf_list->fmt.nbufs;