char*buf;
int len = 0;
+ buf = malloc(init->bufferSize);
if(!buf)
return;
- buf = malloc(init->bufferSize);
-
len = codecEncodeChunk (numsamples, samples, buf);
len += codecFlush (&buf[len]);
len += codecExit (&buf[len]);
fid = swf_GetU16(t);
if ((!id)||(id==fid))
- { U16 of,*ofs;
+ { U16 of;
int n,i;
id = fid;
int swf_FontSetID(SWFFONT * f,U16 id) { if (!f) return -1; f->id = id; return 0; }
int swf_FontReduce(SWFFONT * f,FONTUSAGE * use)
-{ int i,j,num;
+{ int i,j;
if ((!f)||(!use)) return -1;
j = 0;
rgb.b = 0x00;
for(y=0;y<=((font->maxascii-1)/16);y++)
{
- int c=0,lastx=-1, firstx=0;
+ int c=0,lastx=-1;
+ /* TODO: firstx?? */
for(x=0;x<16;x++) {
int g = (y*16+x<font->maxascii)?font->ascii2glyph[y*16+x]:-1;
if(g>=0 && font->glyph[g].shape) {