Skip to content

Commit 6add112

Browse files
committed
fix comment
1 parent d719b19 commit 6add112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decoder/lossless.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ fn convert_to_u8(frame: &FrameInfo, data: Vec<u16>) -> Vec<u8> {
259259
if frame.precision == 8 {
260260
data.iter().map(|x| *x as u8).collect()
261261
} else {
262-
// we use big endian to conform with PNG
262+
// we output native endian, which is the standard for image-rs
263263
let out: Vec<[u8; 2]> = data.iter().map(|x| x.to_ne_bytes()).collect();
264264
out.iter().flatten().map(|x| *x).collect()
265265
}

0 commit comments

Comments
 (0)