X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.c;h=ae1426842e14714b11bf113bb328ec0b882add44;hb=ccdef17af6b95031cf3b2c093f1594b635adbfdb;hp=f48045848ba02a88947643be8c4c09c1a8dc30f9;hpb=3c7acbedb30491cc7e7e827f06853bc18ec91759;p=swftools.git diff --git a/lib/rfxswf.c b/lib/rfxswf.c index f480458..ae14268 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -1222,8 +1222,10 @@ int swf_WriteSWF(int handle, SWF * swf) // Writes SWF to file, returns leng { struct writer_t writer; swf->compressed = 0; - if(handle<0) + if(handle<0) { + writer_init_nullwriter(&writer); return swf_WriteSWF2(&writer, swf); + } writer_init_filewriter(&writer, handle); return swf_WriteSWF2(&writer, swf); } @@ -1232,8 +1234,10 @@ int swf_WriteSWC(int handle, SWF * swf) // Writes SWF to file, returns leng { struct writer_t writer; swf->compressed = 1; - if(handle<0) + if(handle<0) { + writer_init_nullwriter(&writer); return swf_WriteSWF2(&writer, swf); + } writer_init_filewriter(&writer, handle); return swf_WriteSWF2(&writer, swf); } @@ -1295,4 +1299,3 @@ void swf_FreeTags(SWF * swf) // Frees all malloc'ed memory for t #include "modules/swfbits.c" #include "modules/swfaction.c" #include "modules/swfsound.c" -#include "h.263/swfvideo.c"