This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit 5a1b88547ab0ad1f03ca8135f801cdf8b8484913
Author: Kim Woelders <[email protected]>
AuthorDate: Mon Nov 21 08:00:07 2022 +0100

    PNG loader: Quit after loading first frame
    
    .. in the IDAT data case too.
---
 src/modules/loaders/loader_png.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/modules/loaders/loader_png.c b/src/modules/loaders/loader_png.c
index afa4f66..300fe69 100644
--- a/src/modules/loaders/loader_png.c
+++ b/src/modules/loaders/loader_png.c
@@ -511,6 +511,7 @@ _load(ImlibImage * im, int load_data)
              /* Needed chunks should now be read */
              /* Note - Just before starting to process data chunks libpng will
               * call info_callback() */
+             save_fdat = true;  /* Save IDAT/fdAT's as of now (until next fcTL) */
              if (!pf || pf->frame_count <= 0)
                 break;          /* Regular PNG - Process actual IDAT chunk */
              if (frame == 1 && seen_fctl)
@@ -519,7 +520,6 @@ _load(ImlibImage * im, int load_data)
               * the frame's first fdAT chunk */
              fptr = (unsigned char *)ctx.pch_fctl;
              len = htonl(ctx.pch_fctl->hdr.len);
-             save_fdat = true;  /* Save fdAT's as of now (until next fcTL) */
              continue;
 
           case PNG_TYPE_acTL:
@@ -568,7 +568,6 @@ _load(ImlibImage * im, int load_data)
      }
 
  done:
-
    rc = ctx.rc;
    if (rc <= 0)
       goto quit;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to