Skip to content

Commit

Permalink
unci: fix memcpy to little endian
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 29, 2024
1 parent 0c282f0 commit 1257811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libheif/codecs/uncompressed/decoder_abstract.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void AbstractDecoder::memcpy_to_native_endian(uint8_t* dst, uint32_t value, uint
}
else {
for (uint32_t i = 0; i < bytes_per_sample; i++) {
dst[bytes_per_sample] = static_cast<uint8_t>((value >> (i * 8)) & 0xFF);
dst[i] = static_cast<uint8_t>((value >> (i * 8)) & 0xFF);
}
}
}
Expand Down

0 comments on commit 1257811

Please sign in to comment.