mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-10-20 13:58:50 -04: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 {};
|
||||
}
|
||||
|
||||
#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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user