X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfbits.c;h=d6e59fc0dc6b4d9729f08f080b12851432492171;hb=7f599a74eb9265eb57328cde4826e0f5d5c8bbd9;hp=4349b965e3b428c40c8962429aaddfafc4f9cb85;hpb=1267403bc893407a1031042776675244afaae379;p=swftools.git diff --git a/lib/modules/swfbits.c b/lib/modules/swfbits.c index 4349b96..d6e59fc 100644 --- a/lib/modules/swfbits.c +++ b/lib/modules/swfbits.c @@ -121,10 +121,10 @@ int swf_SetJPEGBits(TAG * t,char * fname,int quality) jpeg_create_decompress(&cinfo); if ((f=fopen(fname,"rb"))==NULL) return -1; - jpeg_stdio_src(&cinfo,f); jpeg_read_header(&cinfo, TRUE); + cinfo.out_color_space = JCS_RGB; //automatically convert grayscale images jpeg_start_decompress(&cinfo); out = swf_SetJPEGBitsStart(t,cinfo.output_width,cinfo.output_height,quality);