]> git.pld-linux.org Git - packages/swftools.git/blame - swftools-giflib.patch
- rebuild with poppler 0.53
[packages/swftools.git] / swftools-giflib.patch
CommitLineData
2c2efdad
JB
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
3@@ -230,13 +230,13 @@
4 }
5 fclose(fi);
6
7- if ((gft = DGifOpenFileName(sname)) == NULL) {
8+ if ((gft = DGifOpenFileName(sname, NULL)) == NULL) {
9 fprintf(stderr, "%s is not a GIF file!\n", sname);
10 return t;
11 }
12
13 if (DGifSlurp(gft) != GIF_OK) {
14- PrintGifError();
15+ fprintf(stderr, "GIF-LIB error: %s\n", GifErrorString(gft->Error));
16 return t;
17 }
18
19@@ -455,7 +455,7 @@
20
21 free(pal);
22 free(imagedata);
23- DGifCloseFile(gft);
24+ DGifCloseFile(gft, NULL);
25
26 return t;
27 }
28@@ -488,7 +488,7 @@
29 }
30 fclose(fi);
31
32- if ((gft = DGifOpenFileName(s)) == NULL) {
33+ if ((gft = DGifOpenFileName(s, NULL)) == NULL) {
34 fprintf(stderr, "%s is not a GIF file!\n", fname);
35 return -1;
36 }
37@@ -499,7 +499,7 @@
38 global.max_image_height = gft->SHeight;
39
40 if (DGifSlurp(gft) != GIF_OK) {
41- PrintGifError();
42+ fprintf(stderr, "GIF-LIB error: %s\n", GifErrorString(gft->Error));
43 return -1;
44 }
45 // After DGifSlurp() call, gft->ImageCount become available
46@@ -518,7 +518,7 @@
47 fprintf(stderr, "frame: %u, delay: %.3f sec\n", i + 1, getGifDelayTime(gft, i) / 100.0);
48 }
49
50- DGifCloseFile(gft);
51+ DGifCloseFile(gft, NULL);
52
53 return 0;
54 }
This page took 0.051516 seconds and 4 git commands to generate.