X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.c;h=441e19dd74eb4a278a73449e74233f37ca8287e2;hb=d0f35504a46c64a5fc5bd9eb128cfda870d37dfe;hp=cd2e0b6c4f58439f9a8381a3d986499e318fa9e6;hpb=29bd38f41bd1ade654941453d76c029f275edc28;p=swftools.git diff --git a/lib/rfxswf.c b/lib/rfxswf.c index cd2e0b6..441e19d 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -1207,6 +1207,7 @@ int swf_WriteSWF2(struct writer_t*writer, SWF * swf) // Writes SWF to file, int fileSize = 0; int inSprite = 0; int writer_lastpos = 0; + int ret; if (!swf) return -1; if (!writer) return -1; // the caller should provide a nullwriter, not 0, for querying SWF size @@ -1296,7 +1297,7 @@ int swf_WriteSWF2(struct writer_t*writer, SWF * swf) // Writes SWF to file, swf_SetU16(&t1,swf->frameRate); swf_SetU16(&t1,swf->frameCount); - int ret = writer->write(writer,b,swf_GetTagLen(&t1)); + ret = writer->write(writer,b,swf_GetTagLen(&t1)); if (ret!=swf_GetTagLen(&t1)) { #ifdef DEBUG_RFXSWF