summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-10-19 12:07:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-10-19 16:19:24 +0200
commit3a1cf7a24cfbf65adbbe692ac6f8c1b55c7807fe (patch)
treeecdbdd32400b0c1e35a666e6cbfffb947ea5ffa0 /vcl
parentd8b7558d8a462649fa3b2df2748e92377917e3fd (diff)
use png_set_keep_unknown_chunks
so we don't see unnecessary warnings about the exIf chunks we use Change-Id: Iac02591be8a239b6077fa05826fdd8e76bcc2236 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158174 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/png/PngImageReader.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/filter/png/PngImageReader.cxx b/vcl/source/filter/png/PngImageReader.cxx
index a949f856646e..860bd807a685 100644
--- a/vcl/source/filter/png/PngImageReader.cxx
+++ b/vcl/source/filter/png/PngImageReader.cxx
@@ -329,6 +329,8 @@ bool reader(SvStream& rStream, Graphic& rGraphic,
APNGInfo aAPNGInfo;
png_set_read_user_chunk_fn(pPng, &aAPNGInfo, &handle_unknown_chunk);
+ // don't complain about vpAg and exIf chunks
+ png_set_keep_unknown_chunks(pPng, 2, nullptr, 0);
png_infop pInfo = png_create_info_struct(pPng);
if (!pInfo)