[packages/ming] - updated giflib patch for giflib 5.1.0

baggins baggins at pld-linux.org
Sun Oct 26 22:37:10 CET 2014


commit 0fa2c15dc3a1c2ef23a276e3c8200dc454d8bd5d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Oct 26 22:38:29 2014 +0100

    - updated giflib patch for giflib 5.1.0

 ming-giflib.patch | 27 +++++++++++++++++++++++++++
 ming.spec         |  2 +-
 2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/ming.spec b/ming.spec
index 1da4019..74a9268 100644
--- a/ming.spec
+++ b/ming.spec
@@ -7,7 +7,7 @@ Summary:	Ming - an SWF output library
 Summary(pl.UTF-8):	Ming - biblioteka do produkcji plików SWF
 Name:		ming
 Version:	0.4.5
-Release:	6
+Release:	7
 License:	LGPL
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/ming/%{name}-%{version}.tar.gz
diff --git a/ming-giflib.patch b/ming-giflib.patch
index 24b6635..ee0bd47 100644
--- a/ming-giflib.patch
+++ b/ming-giflib.patch
@@ -1,5 +1,23 @@
 --- ming-0.4.5/src/blocks/gifdbl.c.orig	2010-10-10 09:19:23.000000000 +0200
 +++ ming-0.4.5/src/blocks/gifdbl.c	2014-04-06 21:48:13.695395774 +0200
+@@ -69,7 +69,7 @@
+ 	unsigned char *bits;
+ 	unsigned char *data;
+ 	unsigned char *p;
+-	int i, nColors, size, alpha, bgColor, alignedWidth, bytesPerColor;
++	int i, nColors, size, alpha, bgColor, alignedWidth, bytesPerColor, giferror;
+ 	unsigned long outsize;
+ 
+ 	if(DGifSlurp(file) != GIF_OK)
+@@ -203,7 +203,7 @@
+ 	}
+ 
+ 	/* Done! */
+-	DGifCloseFile(file);
++	DGifCloseFile(file, &giferror);
+ 
+ 	result->data = malloc(outsize = (int)floor(size*1.01+12));
+ 
 @@ -227,7 +227,7 @@ SWFDBLBitmapData newSWFDBLBitmapData_fro
  	SWFDBLBitmapData ret;
  	struct dbl_data gifdata;
@@ -66,6 +84,15 @@
  
    /* data should now be available */
  
+@@ -189,7 +189,7 @@
+   }
+ 
+ 	/* Done! */
+-  DGifCloseFile(file);
++  DGifCloseFile(file, &err);
+ 
+   *length = size;
+   return data;
 --- ming-0.4.5/util/gif2mask.c.orig	2013-06-08 16:08:51.000000000 +0200
 +++ ming-0.4.5/util/gif2mask.c	2014-04-06 21:59:20.702048538 +0200
 @@ -13,10 +13,9 @@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ming.git/commitdiff/0fa2c15dc3a1c2ef23a276e3c8200dc454d8bd5d



More information about the pld-cvs-commit mailing list