TAG * t;
int frameCount=0;
struct writer_t zwriter;
+ int fileSize = 0;
if (!swf) return -1;
l = swf_GetTagLen(&t2)+8;
}
+ fileSize = l+len;
if(len) {// don't touch headers without tags
- swf->fileSize = l+len;
+ swf->fileSize = fileSize;
swf->frameCount = frameCount;
}
writer->finish(writer); //e.g. flush zlib buffers
}
}
- return (int)swf->fileSize;
+ return (int)fileSize;
}
int swf_WriteSWF(int handle, SWF * swf) // Writes SWF to file, returns length or <0 if fails