mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-11-04 08:38:52 -05:00
IFF: fix DBODChunk::strideRead on big-endian
On big-endian systems the uint16 data should stay big-endian.
This commit is contained in:
committed by
Albert Astals Cid
parent
f5ba223e15
commit
9a45321440
@@ -4083,6 +4083,7 @@ QByteArray DBODChunk::strideRead(QIODevice *d, qint32, const DGBLChunk *header,
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
|
||||||
// byte swap
|
// byte swap
|
||||||
if (auto count = pel->count()) {
|
if (auto count = pel->count()) {
|
||||||
if (pel->depth() / count == 16) {
|
if (pel->depth() / count == 16) {
|
||||||
@@ -4091,6 +4092,7 @@ QByteArray DBODChunk::strideRead(QIODevice *d, qint32, const DGBLChunk *header,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return planes;
|
return planes;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user