From bf8bcf92da3259c99babe58309bb0db367665c7b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 12 Apr 2022 21:34:26 +0100 Subject: Tests: Decoder: Print frame number in frame info. --- test/nsgif.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } } -- cgit v1.2.1