Integrate patches inside git repository
[hvlinux.git] / stage3 / patches / common / libtheora-1.1.1-png16.patch
diff --git a/stage3/patches/common/libtheora-1.1.1-png16.patch b/stage3/patches/common/libtheora-1.1.1-png16.patch
new file mode 100644 (file)
index 0000000..d74497f
--- /dev/null
@@ -0,0 +1,22 @@
+Submitted By: Hugo Villeneuve <hugo at hugovil dot com>
+Date: 2014-05-19
+Initial Package Version: 1.1.1
+Upstream Status: Not sent
+Origin: Hugo Villeneuve
+Description: Fix compile error with libpng-1.6
+
+diff -Naur libtheora-1.1.1.orig/examples/png2theora.c libtheora-1.1.1.new/examples/png2theora.c
+--- libtheora-1.1.1.orig/examples/png2theora.c 2009-08-22 14:14:04.000000000 -0400
++++ libtheora-1.1.1.new/examples/png2theora.c  2014-05-19 19:32:31.851987654 -0400
+@@ -462,9 +462,9 @@
+   png_set_strip_alpha(png_ptr);
+   row_data = (png_bytep)png_malloc(png_ptr,
+-    3*height*width*png_sizeof(*row_data));
++    3*height*width*sizeof(*row_data));
+   row_pointers = (png_bytep *)png_malloc(png_ptr,
+-    height*png_sizeof(*row_pointers));
++    height*sizeof(*row_pointers));
+   for(y = 0; y < height; y++) {
+     row_pointers[y] = row_data + y*(3*width);
+   }