From: kramm Date: Sun, 13 Jan 2008 09:39:23 +0000 (+0000) Subject: fixed bug with y-direction predictors in the first scanline X-Git-Tag: buttons-working~440 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=2ca40471be05851582e72ff47189fa4164ff329a fixed bug with y-direction predictors in the first scanline --- diff --git a/lib/png.c b/lib/png.c index fac4f77..739b895 100644 --- a/lib/png.c +++ b/lib/png.c @@ -619,6 +619,9 @@ EXPORT int getPNG(const char*sname, int*destwidth, int*destheight, unsigned char int x,y; int pos=0; *destdata = data2; + + unsigned char* firstline = malloc(header.width*4); + memset(firstline,0,header.width*4); for(y=0;y