diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-04-12 21:41:34 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-04-12 21:41:34 +0100 |
commit | 59566cafec6ba3f0eca7718859f2a742469d5b47 (patch) | |
tree | 3e08b21863ce060aab26933730ce53214bda8eb6 | |
parent | bf8bcf92da3259c99babe58309bb0db367665c7b (diff) | |
download | libnsgif-59566cafec6ba3f0eca7718859f2a742469d5b47.tar.gz libnsgif-59566cafec6ba3f0eca7718859f2a742469d5b47.tar.bz2 |
Tests: Decoder: Print frame number of frames that fail to decode.
-rw-r--r-- | test/nsgif.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |