Skip to content

Commit

Permalink
Fix typo in app marker reconstruction, add more test
Browse files Browse the repository at this point in the history
  • Loading branch information
tirr-c committed Nov 26, 2024
1 parent 6ad6b51 commit fd8ecef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/jxl-jbr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ impl JpegBitstreamReconstructor<'_, '_, '_> {
.map_err(Error::ReconstructionWrite)?;
}
2 => {
let header = [0xff, 0xe0, encoded_len[0], encoded_len[1]];
let header = [0xff, 0xe1, encoded_len[0], encoded_len[1]];
writer
.write_all(&header)
.map_err(Error::ReconstructionWrite)?;
Expand All @@ -1207,7 +1207,7 @@ impl JpegBitstreamReconstructor<'_, '_, '_> {
.map_err(Error::ReconstructionWrite)?;
}
3 => {
let header = [0xff, 0xe0, encoded_len[0], encoded_len[1]];
let header = [0xff, 0xe1, encoded_len[0], encoded_len[1]];
writer
.write_all(&header)
.map_err(Error::ReconstructionWrite)?;
Expand Down
4 changes: 4 additions & 0 deletions crates/jxl-oxide-tests/tests/jbrd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ macro_rules! test {

#[cfg(feature = "conformance")]
test! {
bench_oriented_brg(
util::conformance_path("bench_oriented_brg"),
"cad665c67d74e3e5cf775ef618c73b0e70dfece33db7dbe0130bc889f2214e1b",
),
cafe(
util::conformance_path("cafe"),
"b6f6e4f820ac69234184434e5b77156401fb782bb46b96e26255ff51be1ec290",
Expand Down

0 comments on commit fd8ecef

Please sign in to comment.