From fbff71da1a048b5bcb1bb0a048931babf318aaa4 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 11 May 2004 17:10:17 +0000 Subject: [PATCH] fixed a bug which appeared when the first line was encoded using a PaethPredictor. --- src/png2swf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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