From: Tristan Matthew <le.businessman@gmail.com>
Date: Sun, 29 Dec 2024 17:24:55 +0100
Subject: Fix build problem with libpng16.

Bug-Debian: https://bugs.debian.org/809949
Origin: backport, https://git.xiph.org/?p=theora.git;a=commitdiff;h=7288b539c52e99168488dc3a343845c9365617c8

Backport fix from upstream to use sizeof() instead of png_sizeof().
---
 examples/png2theora.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/png2theora.c b/examples/png2theora.c
index 36282df..a2a1a91 100644
--- a/examples/png2theora.c
+++ b/examples/png2theora.c
@@ -463,9 +463,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);
   }
