X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fpatches%2Fcommon%2Flibtheora-1.1.1-png16.patch;fp=stage3%2Fpatches%2Fcommon%2Flibtheora-1.1.1-png16.patch;h=d74497fa46b61714aa000cc8ab0f0bc3163f9a00;hb=f17ab848cb756cad27489bf0c2746e5ead466658;hp=0000000000000000000000000000000000000000;hpb=a1358efe562a4e73ef23f25c606a346f684e1c93;p=hvlinux.git 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 index 0000000..d74497f --- /dev/null +++ b/stage3/patches/common/libtheora-1.1.1-png16.patch @@ -0,0 +1,22 @@ +Submitted By: Hugo Villeneuve +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); + }