summaryrefslogtreecommitdiff
path: root/multimedia/dvdauthor/png14.patch
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-06-28 01:07:39 -0500
committerErik Hanson <erik@slackbuilds.org>2010-06-29 00:36:36 -0500
commitc3cfc58576fec621b248c4aa1d6f35b9c2938a77 (patch)
treec647666d0283c9b8404b8e6d8bff0cd5a5ebedae /multimedia/dvdauthor/png14.patch
parentb91dae738a02712fcbc20165e19599e2b33d6421 (diff)
downloadslackbuilds-c3cfc58576fec621b248c4aa1d6f35b9c2938a77.tar.gz
multimedia/dvdauthor: Updated for version 0.6.18.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'multimedia/dvdauthor/png14.patch')
-rw-r--r--multimedia/dvdauthor/png14.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/multimedia/dvdauthor/png14.patch b/multimedia/dvdauthor/png14.patch
new file mode 100644
index 0000000000..39dca8ddb8
--- /dev/null
+++ b/multimedia/dvdauthor/png14.patch
@@ -0,0 +1,20 @@
+--- dvdauthor/src/subgen-image.c 2010-03-13 05:14:07.000000000 -0300
++++ dvdauthor_patched/src/subgen-image.c 2010-06-11 08:10:04.000000000 -0300
+@@ -226,7 +226,7 @@
+ png_struct *ps;
+ png_info *pi;
+ png_byte **rowp;
+- unsigned long width,height;
++ png_uint_32 width,height;
+ int bit_depth,color_type,channels,x,y;
+
+ fp=fopen(s->fname,"rb");
+@@ -271,7 +271,7 @@
+ assert(bit_depth==8); // 8bpp, not 1, 2, 4, or 16
+ assert(!(color_type&PNG_COLOR_MASK_PALETTE)); // not a palette
+ if( width>MAXX || height>MAXY ) {
+- fprintf(stderr,"ERR: PNG %s is too big: %lux%lu\n",s->fname,width,height);
++ fprintf(stderr,"ERR: PNG %s is too big: %lux%lu\n",s->fname,(long unsigned int)width,(long unsigned int)height);
+ png_destroy_read_struct(&ps,&pi,NULL);
+ return -1;
+ }