git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aed88d
)
made more quiet
author
kramm
<kramm>
Sat, 5 Apr 2008 07:25:44 +0000
(07:25 +0000)
committer
kramm
<kramm>
Sat, 5 Apr 2008 07:25:44 +0000
(07:25 +0000)
lib/png.c
patch
|
blob
|
history
diff --git
a/lib/png.c
b/lib/png.c
index
739b895
..
e793367
100644
(file)
--- a/
lib/png.c
+++ b/
lib/png.c
@@
-99,7
+99,7
@@
static int png_read_header(FILE*fi, struct png_header*header)
unsigned char*data;
fread(head2,8,1,fi);
if(strncmp((const char*)head,(const char*)head2,4))
- return 0;
+ return 0; // not a png file
while(png_read_chunk(&id, &len, &data, fi))
{
@@
-448,7
+448,6
@@
EXPORT int getPNGdimensions(const char*sname, int*destwidth, int*destheight)
return 0;
}
if(!png_read_header(fi, &header)) {
- fprintf(stderr, "Error reading header from file %s\n", sname);
return 0;
}