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; }