1 --- swftools-0.9.2/src/gif2swf.c.orig 2011-01-02 04:30:29.000000000 +0100
2 +++ swftools-0.9.2/src/gif2swf.c 2014-06-19 21:18:02.578953540 +0200
7 - if ((gft = DGifOpenFileName(sname)) == NULL) {
8 + if ((gft = DGifOpenFileName(sname, NULL)) == NULL) {
9 fprintf(stderr, "%s is not a GIF file!\n", sname);
13 if (DGifSlurp(gft) != GIF_OK) {
15 + fprintf(stderr, "GIF-LIB error: %s\n", GifErrorString(gft->Error));
24 + DGifCloseFile(gft, NULL);
32 - if ((gft = DGifOpenFileName(s)) == NULL) {
33 + if ((gft = DGifOpenFileName(s, NULL)) == NULL) {
34 fprintf(stderr, "%s is not a GIF file!\n", fname);
38 global.max_image_height = gft->SHeight;
40 if (DGifSlurp(gft) != GIF_OK) {
42 + fprintf(stderr, "GIF-LIB error: %s\n", GifErrorString(gft->Error));
45 // After DGifSlurp() call, gft->ImageCount become available
47 fprintf(stderr, "frame: %u, delay: %.3f sec\n", i + 1, getGifDelayTime(gft, i) / 100.0);
51 + DGifCloseFile(gft, NULL);