X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fpng2swf.c;h=2f0c6068d5ae1b44e392658602b8de5fc5455f62;hb=2689b541f1a0f9a767ac8fe55909183d2c9a7347;hp=e033e93d5437b902d1c8146f0fce50b53b4b0289;hpb=18a26d55cce0b899106edb796bad0df32de8259f;p=swftools.git diff --git a/src/png2swf.c b/src/png2swf.c index e033e93..2f0c606 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;ylen < 64) { + swf_SetU8(t, 0); //fix for flash player bug- see ../lib/modules/swfbits.c + } + t = swf_InsertTag(t, ST_DEFINESHAPE3); swf_ShapeNew(&s);