[xiph-commits] r19088 - trunk/theora/examples

tmatth at svn.xiph.org tmatth at svn.xiph.org
Tue Feb 11 10:55:07 PST 2014


Author: tmatth
Date: 2014-02-11 10:55:07 -0800 (Tue, 11 Feb 2014)
New Revision: 19088

Modified:
   trunk/theora/examples/png2theora.c
Log:
examples: png_sizeof no longer available (since libpng 1.6)



Modified: trunk/theora/examples/png2theora.c
===================================================================
--- trunk/theora/examples/png2theora.c	2014-02-11 18:51:20 UTC (rev 19087)
+++ trunk/theora/examples/png2theora.c	2014-02-11 18:55:07 UTC (rev 19088)
@@ -461,9 +461,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);
   }



More information about the commits mailing list