--- src/gif2swf.c.orig 2011-01-02 14:30:29.000000000 +1100 +++ src/gif2swf.c 2012-08-22 17:04:57.000000000 +1000 @@ -236,7 +236,11 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, c } if (DGifSlurp(gft) != GIF_OK) { - PrintGifError(); + char *Err = GifErrorString(); + if (Err != NULL) + fprintf(stderr, "\nGIF-LIB error: %s.\n", Err); + else + fprintf(stderr, "\nGIF-LIB undefined error %d.\n", GifError()); return t; } @@ -499,7 +503,11 @@ int CheckInputFile(char *fname, char **r global.max_image_height = gft->SHeight; if (DGifSlurp(gft) != GIF_OK) { - PrintGifError(); + char *Err = GifErrorString(); + if (Err != NULL) + fprintf(stderr, "\nGIF-LIB error: %s.\n", Err); + else + fprintf(stderr, "\nGIF-LIB undefined error %d.\n", GifError()); return -1; } // After DGifSlurp() call, gft->ImageCount become available