vcl/source/filter/png/PngImageReader.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 3a1cf7a24cfbf65adbbe692ac6f8c1b55c7807fe
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Oct 19 12:07:12 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Oct 19 16:19:24 2023 +0200

    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.gran...@collabora.co.uk>

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)

Reply via email to