freebsd-ports/multimedia/dvdauthor/files/patch-src__subgen-image.c
Pierre Beyssac 2e88b1de64 Description from PR:
With the newer PNG library, spumux is detecting an errors about PNG
images being too big (at least on amd64).  This patches uses a specific
libpng type for width and height.

devede was generating a DVD with a menu that was non-functional.  It
took me awhile to narrow down the problem:  spumux was skipping the
addition of a subtitle to the menu MPG file but not causing devede to
return an error.  It seems that DVD's require a subtitle for the menu to
function even if it does not say anything.

Patch obtained from the dvdauthor repository:
fd5c270582

PR:		ports/148658
Submitted by:	scf
2010-07-24 16:38:07 +00:00

15 lines
743 B
C

diff -ruN --exclude=CVS /usr/ports/multimedia/dvdauthor.orig/files/patch-src__subgen-image.c /usr/ports/multimedia/dvdauthor/files/patch-src__subgen-image.c
--- /usr/ports/multimedia/dvdauthor.orig/files/patch-src__subgen-image.c 1969-12-31 18:00:00.000000000 -0600
+++ /usr/ports/multimedia/dvdauthor/files/patch-src__subgen-image.c 2010-07-15 19:58:36.000000000 -0500
@@ -0,0 +1,11 @@
+--- src/subgen-image.c.orig 2007-01-12 19:40:42.000000000 -0600
++++ src/subgen-image.c 2010-07-15 19:56:30.000000000 -0600
+@@ -203,7 +203,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");