Skip to content

Commit

Permalink
Fix default init_buffer_size to be 512 KiB
Browse files Browse the repository at this point in the history
  • Loading branch information
jkalez committed Nov 26, 2024
1 parent 0444c91 commit 63d856b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jpegxl-rs/src/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl<'prl, 'mm> JxlEncoderBuilder<'prl, 'mm> {

let init_buffer_size =
self.init_buffer_size
.map_or(512 * 1024 * 1024, |v| if v < 32 { 32 } else { v });
.map_or(512 * 1024, |v| if v < 32 { 32 } else { v });

Ok(JxlEncoder {
enc,
Expand Down

0 comments on commit 63d856b

Please sign in to comment.