X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fjpeg2swf.c;h=544e7c9308ccef5b1edf990cf23bf5e9ed1f240a;hp=7c1298f96f8a554f6b429f671135157f7d0dd534;hb=d0c255a3b63de4982e15f1c1c169ebdb08d4163c;hpb=d18ccf3a425ed1a44c54b7d4f5045b6defa08445 diff --git a/src/jpeg2swf.c b/src/jpeg2swf.c index 7c1298f..544e7c9 100644 --- a/src/jpeg2swf.c +++ b/src/jpeg2swf.c @@ -136,13 +136,8 @@ int MovieFinish(SWF * swf, TAG * t, char *sname) sname = "output.swf"; handle = open(sname, O_BINARY | O_RDWR | O_CREAT | O_TRUNC, 0666); } - if(global.version >= 6) { - if (swf_WriteSWC(handle, swf)<0) - fprintf(stderr, "Unable to write output file: %s\n", sname); - } else { - if (swf_WriteSWF(handle, swf)<0) - fprintf(stderr, "Unable to write output file: %s\n", sname); - } + if (swf_WriteSWF(handle, swf)<0) + fprintf(stderr, "Unable to write output file: %s\n", sname); if (handle != so) close(handle);