git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implemented difference coding, decoder emulation.
[swftools.git]
/
src
/
png2swf.c
diff --git
a/src/png2swf.c
b/src/png2swf.c
index
578edfd
..
2e526d7
100644
(file)
--- a/
src/png2swf.c
+++ b/
src/png2swf.c
@@
-66,7
+66,7
@@
int MovieFinish(SWF * swf, TAG * t, char *sname)
else {
if (!sname)
sname = "output.swf";
else {
if (!sname)
sname = "output.swf";
- handle = open(sname, O_RDWR | O_CREAT | O_TRUNC, 0666);
+ handle = open(sname, O_BINARY | O_RDWR | O_CREAT | O_TRUNC, 0666);
}
if FAILED
(swf_WriteSWF(handle, swf)) if (VERBOSE(1))
}
if FAILED
(swf_WriteSWF(handle, swf)) if (VERBOSE(1))