diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2019-11-05 21:14:17 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2019-11-05 21:14:17 +0000 |
commit | dd3d60c3f9f12f1ca21c59474564f9b5098dd92c (patch) | |
tree | 921f6c748b0e3d19e77ceb35afb4b406bd3981a4 /src | |
parent | 0c0d26a8c19957075bcdae1319fa38cde584518c (diff) | |
download | imv-dd3d60c3f9f12f1ca21c59474564f9b5098dd92c.tar.gz |
png: Increase max data chunk size
Diffstat (limited to 'src')
-rw-r--r-- | src/backend_libpng.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend_libpng.c b/src/backend_libpng.c index ef94028..53ed87f 100644 --- a/src/backend_libpng.c +++ b/src/backend_libpng.c @@ -96,6 +96,9 @@ static enum backend_result open_path(const char *path, struct imv_source **src) return BACKEND_UNSUPPORTED; } + /* set max PNG chunk size to 50MB, instead of 8MB default */ + png_set_chunk_malloc_max(private->png, 1024 * 1024 * 50); + private->info = png_create_info_struct(private->png); if (!private->info) { png_destroy_read_struct(&private->png, NULL, NULL); |