git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
827c7eb
)
fix: don't flatten sprites more than once.
author
kramm
<kramm>
Tue, 4 Jun 2002 18:45:29 +0000
(18:45 +0000)
committer
kramm
<kramm>
Tue, 4 Jun 2002 18:45:29 +0000
(18:45 +0000)
lib/rfxswf.c
patch
|
blob
|
history
diff --git
a/lib/rfxswf.c
b/lib/rfxswf.c
index
5fdc4c7
..
2598fd2
100644
(file)
--- a/
lib/rfxswf.c
+++ b/
lib/rfxswf.c
@@
-747,6
+747,10
@@
void swf_FoldSprite(TAG * t)
fprintf(stderr, "Error: Sprite has no ID!");
return;
}
fprintf(stderr, "Error: Sprite has no ID!");
return;
}
+ if(t->len>4) {
+ /* sprite is already folded */
+ return;
+ }
t->pos = 0;
id = swf_GetU16(t);
t->pos = 0;
id = swf_GetU16(t);