1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/libtheora/libpng-1.6.patch
5 # Copyright (C) 2021 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 From 7288b539c52e99168488dc3a343845c9365617c8 Mon Sep 17 00:00:00 2001
18 From: Tristan Matthews <le.businessman@gmail.com>
19 Date: Tue, 11 Feb 2014 18:55:07 +0000
20 Subject: [PATCH] examples: png_sizeof no longer available (since libpng 1.6)
22 svn path=/trunk/theora/; revision=19088
24 examples/png2theora.c | 4 ++--
25 1 file changed, 2 insertions(+), 2 deletions(-)
27 diff --git a/examples/png2theora.c b/examples/png2theora.c
28 index 94a9ab99..281c8acb 100644
29 --- a/examples/png2theora.c
30 +++ b/examples/png2theora.c
31 @@ -461,9 +461,9 @@ png_read(const char *pathname, unsigned int *w, unsigned int *h, th_ycbcr_buffer
32 png_set_strip_alpha(png_ptr);
34 row_data = (png_bytep)png_malloc(png_ptr,
35 - 3*height*width*png_sizeof(*row_data));
36 + 3*height*width*sizeof(*row_data));
37 row_pointers = (png_bytep *)png_malloc(png_ptr,
38 - height*png_sizeof(*row_pointers));
39 + height*sizeof(*row_pointers));
40 for(y = 0; y < height; y++) {
41 row_pointers[y] = row_data + y*(3*width);