Skip to content

Commit 8070092

Browse files
committed
fix byte ordering
1 parent e31d95f commit 8070092

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/jxlc/JxlAnimatedEncoder.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ class JxlAnimatedEncoder {
6868
throw AnimatedEncoderError(str);
6969
}
7070

71-
pixelFormat = {3, JXL_TYPE_UINT8, JXL_BIG_ENDIAN, 0};
71+
pixelFormat = {3, JXL_TYPE_UINT8, JXL_NATIVE_ENDIAN, 0};
7272
switch (pixelType) {
7373
case rgb:
74-
pixelFormat = {3, JXL_TYPE_UINT8, JXL_BIG_ENDIAN, 0};
74+
pixelFormat = {3, JXL_TYPE_UINT8, JXL_NATIVE_ENDIAN, 0};
7575
break;
7676
case rgba:
77-
pixelFormat = {4, JXL_TYPE_UINT8, JXL_BIG_ENDIAN, 0};
77+
pixelFormat = {4, JXL_TYPE_UINT8, JXL_NATIVE_ENDIAN, 0};
7878
break;
7979
}
8080

0 commit comments

Comments
 (0)