From: Matthias Clasen Date: Mon, 22 Aug 2022 14:48:00 +0000 (-0400) Subject: Bump the jpeg memory limit X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~3^2~67^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d1755337a2d8a63ad96b5b616e22b3d5cf3e0670;p=gtk4.git Bump the jpeg memory limit Commit 59f6c50df8d4d9 set the memory limit to 100M, which turns out to exclude some large, valid jpegs. So, bump things to 300M, matching what was done in gdk-pixbuf. --- diff --git a/gdk/loaders/gdkjpeg.c b/gdk/loaders/gdkjpeg.c index a2467cc286..c715841940 100644 --- a/gdk/loaders/gdkjpeg.c +++ b/gdk/loaders/gdkjpeg.c @@ -161,7 +161,7 @@ gdk_load_jpeg (GBytes *input_bytes, jpeg_create_decompress (&info); - info.mem->max_memory_to_use = 100 * 1024 * 1024; + info.mem->max_memory_to_use = 300 * 1024 * 1024; jpeg_mem_src (&info, g_bytes_get_data (input_bytes, NULL), @@ -283,7 +283,7 @@ gdk_save_jpeg (GdkTexture *texture) jpeg_set_defaults (&info); jpeg_set_quality (&info, 75, TRUE); - info.mem->max_memory_to_use = 100 * 1024 * 1024; + info.mem->max_memory_to_use = 300 * 1024 * 1024; jpeg_mem_dest (&info, &data, &size);