Print version info and exit
.TP
\fB\-o\fR, \fB\-\-output\fR \fIfilename\fR
-Explicitly specify output file. (Otherwise, output will go to stdout)
+Explicitly specify output file. (Otherwise, output will go to stdout / output.swf)
.TP
\fB\-q\fR, \fB\-\-quality\fR \fIquality\fR
Set JPEG compression quality (1-100)
Force movie height to \fIscale\fR (default: autodetect)
.TP
\fB\-o\fR, \fB\-\-output\fR \fIfilename\fR
-Explicitly specify output file. (Otherwise, output will go to stdout)
+Explicitly specify output file. (Otherwise, output will go to stdout / output.swf)
.TP
\fB\-r\fR, \fB\-\-framerate\fR \fIrate\fR
Set movie framerate (100/sec)
U8*data;
U8*imagedata;
unsigned long int imagedatalen;
- U8*palette;
- int palettelen;
+ U8*palette = 0;
+ int palettelen = 0;
struct png_header header;
int bypp;
U8*data2 = malloc((header.width+4)*header.height);
int i,x,y;
int pos=0;
+ if(!palette) {
+ fprintf(stderr, "Error: No palette found!\n");
+ exit(1);
+ }
/* 24->32 bit conversion */
for(i=0;i<palettelen;i++) {
rgba[i].r = palette[i*3+0];
printf("-Y pixel (height) Force movie height to pixel (default: autodetect)\n");
printf("-v level (verbose) Set verbose level (0=quiet, 1=default, 2=debug)\n");
printf("-V (version) Print version information and exit\n");
- printf("The following options can be set independently for each image: -q -s\n");
}
vsprintf(buf, format, arglist);
va_end(arglist);
- printf("==== Error: %s ====\n", buf);
+ if(!html && !xy)
+ printf("==== Error: %s ====\n", buf);
}
int main (int argc,char ** argv)
tag = swf_InsertTag(tag, ST_SOUNDSTREAMBLOCK);
logf("<notice> Writing block %d", t);
block1 = &samples[t*2*blocksize];
- swf_SetSoundStreamBlock(tag, block1, blocksize*2,1);
+ swf_SetSoundStreamBlock(tag, block1, 1);
tag = swf_InsertTag(tag, ST_SHOWFRAME);
}