From 5f94b7e9645c760d40679b2338b9a076ce3c5834 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 4 Jun 2002 18:45:29 +0000 Subject: [PATCH] fix: don't flatten sprites more than once. --- lib/rfxswf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 5fdc4c7..2598fd2 100644 --- 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; } + if(t->len>4) { + /* sprite is already folded */ + return; + } t->pos = 0; id = swf_GetU16(t); -- 1.7.10.4