From: kramm Date: Mon, 1 Nov 2004 15:02:39 +0000 (+0000) Subject: fixed handling of grayscale images with bpp!=8 X-Git-Tag: release-0-6-3~225 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=38725949933397433f725986346e7421fc2802c2 fixed handling of grayscale images with bpp!=8 --- diff --git a/src/png2swf.c b/src/png2swf.c index d950bd7..b765df0 100644 --- a/src/png2swf.c +++ b/src/png2swf.c @@ -635,12 +635,13 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id) } } } else { - palettelen = 256; + int mult = (0x1ff>>header.bpp); + palettelen = 1<