From 63d856ba7b6e6c388cdab68983eeec0fe57661fb Mon Sep 17 00:00:00 2001 From: Joe Kale Date: Tue, 26 Nov 2024 09:06:28 -0500 Subject: [PATCH] Fix default init_buffer_size to be 512 KiB --- jpegxl-rs/src/encode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jpegxl-rs/src/encode.rs b/jpegxl-rs/src/encode.rs index c140e58..4a3e370 100644 --- a/jpegxl-rs/src/encode.rs +++ b/jpegxl-rs/src/encode.rs @@ -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,