X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fpng2swf.c;h=9afdc4668cd96bf35f330b609f99dbc067c291d4;hb=aab59bee1b79b487e2a15ec57a80a857ffd623a5;hp=ffca258823efb6edfb244d82ced91f532cfa14d3;hpb=d0c255a3b63de4982e15f1c1c169ebdb08d4163c;p=swftools.git diff --git a/src/png2swf.c b/src/png2swf.c index ffca258..9afdc46 100644 --- a/src/png2swf.c +++ b/src/png2swf.c @@ -751,7 +751,14 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id) int width=0, height=0; +#ifndef HAVE_JPEGLIB if(global.mkjpeg) { + global.mkjpeg = 0; + msg(" No jpeg support compiled in"); + } +#endif + if(global.mkjpeg) { +#ifdef HAVE_JPEGLIB RGBA*data = 0; getPNG(sname, &width, &height, (unsigned char**)&data); if(!data) @@ -765,6 +772,7 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id) swf_SetU16(t, id); swf_SetJPEGBits2(t, width,height,data,global.mkjpeg); } +#endif } else if(1) { RGBA*data = 0; getPNG(sname, &width, &height, (unsigned char**)&data); @@ -1059,7 +1067,7 @@ void args_callback_usage(char *name) printf("-q , --quiet Omit normal log messages, only log errors\n"); printf("-C , --cgi For use as CGI- prepend http header, write to stdout\n"); printf("-V , --version Print version information and exit\n"); - printf("-s , --scale Scale image to %% size.\n"); + printf("-s , --scale Scale image to % size.\n"); printf("\n"); }