Gitweb links:

...log 
http://git.netsurf-browser.org/libnsgif.git/shortlog/59566cafec6ba3f0eca7718859f2a742469d5b47
...commit 
http://git.netsurf-browser.org/libnsgif.git/commit/59566cafec6ba3f0eca7718859f2a742469d5b47
...tree 
http://git.netsurf-browser.org/libnsgif.git/tree/59566cafec6ba3f0eca7718859f2a742469d5b47

The branch, master has been updated
       via  59566cafec6ba3f0eca7718859f2a742469d5b47 (commit)
       via  bf8bcf92da3259c99babe58309bb0db367665c7b (commit)
      from  49a2c4374ab846b4d4cce982ea61946ee664628a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/libnsgif.git/commit/?id=59566cafec6ba3f0eca7718859f2a742469d5b47
commit 59566cafec6ba3f0eca7718859f2a742469d5b47
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Tests: Decoder: Print frame number of frames that fail to decode.

diff --git a/test/nsgif.c b/test/nsgif.c
index 3f9559e..61c63d0 100644
--- a/test/nsgif.c
+++ b/test/nsgif.c
@@ -221,7 +221,9 @@ static void decode(FILE* ppm, const char *name, nsgif_t 
*gif)
 
                err = nsgif_frame_decode(gif, frame_new, &bitmap);
                if (err != NSGIF_OK) {
-                       warning("nsgif_decode_frame", err);
+                       fprintf(stderr, "Frame %"PRIu32": "
+                                       "nsgif_decode_frame failed: %s\n",
+                                       frame_new, nsgif_strerror(err));
                        /* Continue decoding the rest of the frames. */
 
                } else if (ppm != NULL) {


commitdiff 
http://git.netsurf-browser.org/libnsgif.git/commit/?id=bf8bcf92da3259c99babe58309bb0db367665c7b
commit bf8bcf92da3259c99babe58309bb0db367665c7b
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Tests: Decoder: Print frame number in frame info.

diff --git a/test/nsgif.c b/test/nsgif.c
index e91d151..3f9559e 100644
--- a/test/nsgif.c
+++ b/test/nsgif.c
@@ -149,11 +149,12 @@ static void print_gif_info(const nsgif_info_t *info)
        fprintf(stdout, "  frames:\n");
 }
 
-static void print_gif_frame_info(const nsgif_frame_info_t *info)
+static void print_gif_frame_info(const nsgif_frame_info_t *info, uint32_t i)
 {
        const char *disposal = nsgif_str_disposal(info->disposal);
 
-       fprintf(stdout, "  - disposal-method: %s\n", disposal);
+       fprintf(stdout, "  - frame: %"PRIu32"\n", i);
+       fprintf(stdout, "    disposal-method: %s\n", disposal);
        fprintf(stdout, "    transparency: %s\n", info->transparency ? "yes" : 
"no");
        fprintf(stdout, "    display: %s\n", info->display ? "yes" : "no");
        fprintf(stdout, "    delay: %"PRIu32"\n", info->delay);
@@ -214,7 +215,7 @@ static void decode(FILE* ppm, const char *name, nsgif_t 
*gif)
 
                        f_info = nsgif_get_frame_info(gif, frame_new);
                        if (f_info != NULL) {
-                               print_gif_frame_info(f_info);
+                               print_gif_frame_info(f_info, frame_new);
                        }
                }
 


-----------------------------------------------------------------------

Summary of changes:
 test/nsgif.c |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/test/nsgif.c b/test/nsgif.c
index e91d151..61c63d0 100644
--- a/test/nsgif.c
+++ b/test/nsgif.c
@@ -149,11 +149,12 @@ static void print_gif_info(const nsgif_info_t *info)
        fprintf(stdout, "  frames:\n");
 }
 
-static void print_gif_frame_info(const nsgif_frame_info_t *info)
+static void print_gif_frame_info(const nsgif_frame_info_t *info, uint32_t i)
 {
        const char *disposal = nsgif_str_disposal(info->disposal);
 
-       fprintf(stdout, "  - disposal-method: %s\n", disposal);
+       fprintf(stdout, "  - frame: %"PRIu32"\n", i);
+       fprintf(stdout, "    disposal-method: %s\n", disposal);
        fprintf(stdout, "    transparency: %s\n", info->transparency ? "yes" : 
"no");
        fprintf(stdout, "    display: %s\n", info->display ? "yes" : "no");
        fprintf(stdout, "    delay: %"PRIu32"\n", info->delay);
@@ -214,13 +215,15 @@ static void decode(FILE* ppm, const char *name, nsgif_t 
*gif)
 
                        f_info = nsgif_get_frame_info(gif, frame_new);
                        if (f_info != NULL) {
-                               print_gif_frame_info(f_info);
+                               print_gif_frame_info(f_info, frame_new);
                        }
                }
 
                err = nsgif_frame_decode(gif, frame_new, &bitmap);
                if (err != NSGIF_OK) {
-                       warning("nsgif_decode_frame", err);
+                       fprintf(stderr, "Frame %"PRIu32": "
+                                       "nsgif_decode_frame failed: %s\n",
+                                       frame_new, nsgif_strerror(err));
                        /* Continue decoding the rest of the frames. */
 
                } else if (ppm != NULL) {


-- 
NetSurf GIF Decoder
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to