blob: e84685a145065bc5deaf2d72368bde80e4be2dca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
diff -ru libtheora-1.1.1.orig/examples/png2theora.c libtheora-1.1.1/examples/png2theora.c
--- libtheora-1.1.1.orig/examples/png2theora.c 2009-08-22 20:14:04.000000000 +0200
+++ libtheora-1.1.1/examples/png2theora.c 2018-08-04 18:02:49.568313482 +0200
@@ -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);
}
|