xiph
/
theora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b07a1d2
)
examples: png_sizeof no longer available (since libpng 1.6)
author
Tristan Matthews
<le.businessman@gmail.com>
Tue, 11 Feb 2014 18:55:07 +0000
(18:55 +0000)
committer
Tristan Matthews
<le.businessman@gmail.com>
Tue, 11 Feb 2014 18:55:07 +0000
(18:55 +0000)
svn path=/trunk/theora/; revision=19088
examples/png2theora.c
patch
|
blob
|
history
diff --git
a/examples/png2theora.c
b/examples/png2theora.c
index
94a9ab9
..
281c8ac
100644
(file)
--- a/
examples/png2theora.c
+++ b/
examples/png2theora.c
@@
-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);
}