IFF: fix DBODChunk::strideRead on big-endian

On big-endian systems the uint16 data should stay big-endian.
This commit is contained in:
Sertonix Norson
2026-10-03 10:43:42 +00:00
committed by Albert Astals Cid
parent f5ba223e15
commit 9a45321440
+2
View File
@@ -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;
}