X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjpeg2swf.c;h=b53958a0fe27a1916f6e676cb3ebc00254440c56;hb=ac8c6f00fbaa94b3136457caf1a24d8f4f0c12cc;hp=544e7c9308ccef5b1edf990cf23bf5e9ed1f240a;hpb=d0c255a3b63de4982e15f1c1c169ebdb08d4163c;p=swftools.git diff --git a/src/jpeg2swf.c b/src/jpeg2swf.c index 544e7c9..b53958a 100644 --- a/src/jpeg2swf.c +++ b/src/jpeg2swf.c @@ -136,6 +136,9 @@ int MovieFinish(SWF * swf, TAG * t, char *sname) sname = "output.swf"; handle = open(sname, O_BINARY | O_RDWR | O_CREAT | O_TRUNC, 0666); } + if(handle<0 && sname) { + perror(sname); + } if (swf_WriteSWF(handle, swf)<0) fprintf(stderr, "Unable to write output file: %s\n", sname);