summaryrefslogtreecommitdiff
path: root/community/swftools/giflib-5.0.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/swftools/giflib-5.0.patch')
-rw-r--r--community/swftools/giflib-5.0.patch53
1 files changed, 0 insertions, 53 deletions
diff --git a/community/swftools/giflib-5.0.patch b/community/swftools/giflib-5.0.patch
deleted file mode 100644
index 48263c6f3..000000000
--- a/community/swftools/giflib-5.0.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-diff -rupN a/src/gif2swf.c b/src/gif2swf.c
---- a/src/gif2swf.c 2011-01-02 03:30:29.000000000 +0000
-+++ b/src/gif2swf.c 2013-07-30 19:30:32.666103403 +0000
-@@ -65,6 +65,15 @@ enum disposal_method {
- RESTORE_TO_PREVIOUS
- };
-
-+static void PrintGifError(int err)
-+{
-+ char *Err = GifErrorString(err);
-+
-+ if (Err != NULL)
-+ fprintf(stderr, "\nGIF-LIB error: %s.\n", Err);
-+ else
-+ fprintf(stderr, "\nGIF-LIB undefined error %d.\n", err);
-+}
-
- void SetFrameAction(TAG ** t, const char *src, int ver)
- {
-@@ -230,13 +239,13 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, c
- }
- fclose(fi);
-
-- if ((gft = DGifOpenFileName(sname)) == NULL) {
-+ if ((gft = DGifOpenFileName(sname, NULL)) == NULL) {
- fprintf(stderr, "%s is not a GIF file!\n", sname);
- return t;
- }
-
- if (DGifSlurp(gft) != GIF_OK) {
-- PrintGifError();
-+ PrintGifError(DGifSlurp(gft));
- return t;
- }
-
-@@ -488,7 +497,7 @@ int CheckInputFile(char *fname, char **r
- }
- fclose(fi);
-
-- if ((gft = DGifOpenFileName(s)) == NULL) {
-+ if ((gft = DGifOpenFileName(s, NULL)) == NULL) {
- fprintf(stderr, "%s is not a GIF file!\n", fname);
- return -1;
- }
-@@ -499,7 +508,7 @@ int CheckInputFile(char *fname, char **r
- global.max_image_height = gft->SHeight;
-
- if (DGifSlurp(gft) != GIF_OK) {
-- PrintGifError();
-+ PrintGifError(DGifSlurp(gft));
- return -1;
- }
- // After DGifSlurp() call, gft->ImageCount become available