From 4f10d64d0286bb6b126d2b178f22e54040e3b9c2 Mon Sep 17 00:00:00 2001 From: uncor3 Date: Sun, 19 Oct 2025 01:21:35 +0000 Subject: [PATCH] fix linux build --- src/core/services/load_heic.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/services/load_heic.cpp b/src/core/services/load_heic.cpp index 255c265..24ba508 100644 --- a/src/core/services/load_heic.cpp +++ b/src/core/services/load_heic.cpp @@ -41,9 +41,13 @@ QPixmap load_heic(const QByteArray &imageData) int width = heif_image_get_width(img, heif_channel_interleaved); int height = heif_image_get_height(img, heif_channel_interleaved); - size_t stride; + int stride; + /* + FIXME: use heif_image_get_plane_readonly2 in future, on ubuntu 24 it's not + available yet + */ const uint8_t *data = - heif_image_get_plane_readonly2(img, heif_channel_interleaved, &stride); + heif_image_get_plane_readonly(img, heif_channel_interleaved, &stride); if (!data) { qWarning() << "Failed to get image plane data";