Skip to content

Commit

Permalink
jxl-color: Fix generated mluc tag (#347)
Browse files Browse the repository at this point in the history
* jxl-color: Fix generated mluc tag

* Update CHANGELOG.md
  • Loading branch information
tirr-c authored Sep 15, 2024
1 parent 9978f74 commit dfc2073
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed
- `jxl-color`: Fix generated `mluc` tag in ICC profile (#347).

## [0.9.0] - 2024-09-10

### Added
Expand Down
2 changes: 1 addition & 1 deletion crates/jxl-color/src/icc/synthesize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn create_mluc(locale: [u8; 4], strings: &[&str]) -> Vec<u8> {
data.extend(s.encode_utf16());
out.extend_from_slice(&locale);
out.extend_from_slice(&((data.len() as u32 - offset) * 2).to_be_bytes());
out.extend_from_slice(&(0x14 + strings.len() as u32 * 12 + offset * 2).to_be_bytes());
out.extend_from_slice(&(0x10 + strings.len() as u32 * 12 + offset * 2).to_be_bytes());
}
for c in data {
let b = c.to_be_bytes();
Expand Down

0 comments on commit dfc2073

Please sign in to comment.