Skip to content
Snippets Groups Projects
Commit 7288b539 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

examples: png_sizeof no longer available (since libpng 1.6)

svn path=/trunk/theora/; revision=19088
parent b07a1d2d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment