fix for flash player 63 byte bug.
authorkramm <kramm>
Thu, 29 Jan 2004 14:53:36 +0000 (14:53 +0000)
committerkramm <kramm>
Thu, 29 Jan 2004 14:53:36 +0000 (14:53 +0000)
src/png2swf.c

index 5b9a262..2f0c606 100644 (file)
@@ -684,6 +684,10 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id)
        free(data2);
     }
 
+    while(t->len < 64) {
+       swf_SetU8(t, 0); //fix for flash player bug- see ../lib/modules/swfbits.c
+    }
+
     t = swf_InsertTag(t, ST_DEFINESHAPE3);
 
     swf_ShapeNew(&s);