# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by scripts/Create-CopyPatch. # # T2 SDE: package/*/libtheora/libpng-1.6.patch # Copyright (C) 2021 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- From 7288b539c52e99168488dc3a343845c9365617c8 Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Tue, 11 Feb 2014 18:55:07 +0000 Subject: [PATCH] examples: png_sizeof no longer available (since libpng 1.6) svn path=/trunk/theora/; revision=19088 --- examples/png2theora.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/png2theora.c b/examples/png2theora.c index 94a9ab99..281c8acb 100644 --- a/examples/png2theora.c +++ b/examples/png2theora.c @@ -461,9 +461,9 @@ png_read(const char *pathname, unsigned int *w, unsigned int *h, th_ycbcr_buffer 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); } -- GitLab