fix: don't flatten sprites more than once.
authorkramm <kramm>
Tue, 4 Jun 2002 18:45:29 +0000 (18:45 +0000)
committerkramm <kramm>
Tue, 4 Jun 2002 18:45:29 +0000 (18:45 +0000)
lib/rfxswf.c

index 5fdc4c7..2598fd2 100644 (file)
@@ -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);