X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fmodules%2Fswfbits.c;h=204dcc44652d1c298127b22b82d51113abeb6611;hb=b390de3b858e9289c134296dd44cce702c7ff0d4;hp=1d9d4121147f5fa5f366a9ea773a90f94f752ea8;hpb=493a94f9e3719d48921a3b1e32c0c1552a7bceff;p=swftools.git diff --git a/lib/modules/swfbits.c b/lib/modules/swfbits.c index 1d9d412..204dcc4 100644 --- a/lib/modules/swfbits.c +++ b/lib/modules/swfbits.c @@ -393,6 +393,7 @@ int swf_SetJPEGBits(TAG * t, char *fname, int quality) } } + free(scanline); swf_SetJPEGBitsFinish(out); jpeg_finish_decompress(&cinfo); fclose(f); @@ -626,7 +627,7 @@ RGBA *swf_JPEG2TagToImage(TAG * tag, int *width, int *height) #ifdef HAVE_ZLIB if(offset) { - U32 datalen = cinfo.output_width*cinfo.output_height; + uLongf datalen = cinfo.output_width*cinfo.output_height; U8* alphadata = (U8*)rfx_alloc(datalen); int error; tag->len = oldtaglen; @@ -915,7 +916,7 @@ void swf_SetLosslessImage(TAG*tag, RGBA*data, int width, int height) RGBA *swf_DefineLosslessBitsTagToImage(TAG * tag, int *dwidth, int *dheight) { int id, format, height, width, pos; - U32 datalen, datalen2; + uLongf datalen, datalen2; int error; int bpp = 1; int cols = 0;