From: uid68734 Date: Sat, 27 Dec 2003 18:13:09 +0000 (+0000) Subject: * fixed 32 bit decoding bug. X-Git-Tag: release-0-5-0~121 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=88f0dff63924cecbca1ad201958108d88e06141c * fixed 32 bit decoding bug. * fixed bug where png2swf did not compile due to a missing jpeglib. --- diff --git a/src/png2swf.c b/src/png2swf.c index e033e93..5b9a262 100644 --- a/src/png2swf.c +++ b/src/png2swf.c @@ -355,6 +355,7 @@ void applyfilter4(int mode, U8*src, U8*old, U8*dest, int width) dest[1] = src[0]+(old[1]+lastr)/2; dest[2] = src[1]+(old[2]+lastg)/2; dest[3] = src[2]+(old[3]+lastb)/2; + lasta = dest[0]; lastr = dest[1]; lastg = dest[2]; lastb = dest[3]; @@ -538,6 +539,7 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id) int pos=0; int opaque=0; int transparent=0; + int semitransparent=0; /* in case for mode 2, the following also performs 24->32 bit conversion */ for(y=0;y