X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpng.c;h=09ffe4a188d05e7608d7f3f268a3a0b9c5ef64fd;hb=969562b8cb5be45ffc45abd110d22102e73732ed;hp=739b8958de6ab3b0bfc041b1a1d2262ea3ea53ff;hpb=2ca40471be05851582e72ff47189fa4164ff329a;p=swftools.git diff --git a/lib/png.c b/lib/png.c index 739b895..09ffe4a 100644 --- 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)) { @@ -197,6 +197,7 @@ static void applyfilter1(int mode, unsigned char*src, unsigned char*old, unsigne else if(mode==3) { for(x=0;x