2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-25 00:30:06 -07:00
repo/extra/libtheora/patches/libtheora-1.1.1-libpng16.patch

18 lines
516 B
Diff
Raw Normal View History

2019-07-18 21:08:19 -06:00
http://bugs.gentoo.org/465450
http://trac.xiph.org/ticket/1947
2021-08-27 00:26:31 -06:00
--- a/examples/png2theora.c
+++ b/examples/png2theora.c
2019-07-18 21:08:19 -06:00
@@ -462,9 +462,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);
}