From: kramm Date: Tue, 11 May 2004 17:10:17 +0000 (+0000) Subject: fixed a bug which appeared when the first line was encoded using X-Git-Tag: release-0-6-0~221 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=fbff71da1a048b5bcb1bb0a048931babf318aaa4 fixed a bug which appeared when the first line was encoded using a PaethPredictor. --- diff --git a/src/png2swf.c b/src/png2swf.c index fe46551..989e3ba 100644 --- a/src/png2swf.c +++ b/src/png2swf.c @@ -542,6 +542,8 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id) int transparent=0; int semitransparent=0; /* in case for mode 2, the following also performs 24->32 bit conversion */ + unsigned char* firstline = malloc(header.width*4); + for(y=0;y