libtheora-1.1.1-libpng16.patch 512 B

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