X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpng.c;h=8578d2dbee85551bca002de752f55abe85312b2f;hb=fe03062883881dcd0e1b8d65d676433d17973477;hp=739b8958de6ab3b0bfc041b1a1d2262ea3ea53ff;hpb=2ca40471be05851582e72ff47189fa4164ff329a;p=swftools.git diff --git a/lib/png.c b/lib/png.c index 739b895..8578d2d 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