1 http://bugs.gentoo.org/465450
2 http://trac.xiph.org/ticket/1947
4 --- examples/png2theora.c
5 +++ examples/png2theora.c
7 png_set_strip_alpha(png_ptr);
9 row_data = (png_bytep)png_malloc(png_ptr,
10 - 3*height*width*png_sizeof(*row_data));
11 + 3*height*width*sizeof(*row_data));
12 row_pointers = (png_bytep *)png_malloc(png_ptr,
13 - height*png_sizeof(*row_pointers));
14 + height*sizeof(*row_pointers));
15 for(y = 0; y < height; y++) {
16 row_pointers[y] = row_data + y*(3*width);