From 9a45321440130e7ca0ee1a89080e95d67eaa8d32 Mon Sep 17 00:00:00 2001 From: Sertonix Norson Date: Thu, 1 Oct 2026 19:22:20 +0200 Subject: [PATCH] IFF: fix DBODChunk::strideRead on big-endian On big-endian systems the uint16 data should stay big-endian. --- src/imageformats/chunks.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/imageformats/chunks.cpp b/src/imageformats/chunks.cpp index c4665c4..3d79d0a 100644 --- a/src/imageformats/chunks.cpp +++ b/src/imageformats/chunks.cpp @@ -4083,6 +4083,7 @@ QByteArray DBODChunk::strideRead(QIODevice *d, qint32, const DGBLChunk *header, return {}; } +#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN // byte swap if (auto count = pel->count()) { if (pel->depth() / count == 16) { @@ -4091,6 +4092,7 @@ QByteArray DBODChunk::strideRead(QIODevice *d, qint32, const DGBLChunk *header, } } } +#endif return planes; }