From bb3b7773036c333bc4179b8f415a886c8c53c42e Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 31 May 2004 21:21:25 +0000 Subject: [PATCH] fix for DEFINEBITSLOSSLESS short tag bug. --- lib/rfxswf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 441e19d..9b3c51e 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -865,7 +865,7 @@ int swf_WriteTag2(struct writer_t*writer, TAG * t) len = (t->id==ST_DEFINESPRITE)?swf_DefineSprite_GetRealSize(t):t->len; - short_tag = len<0x3f; + short_tag = len<0x3f&&(t->id!=ST_DEFINEBITSLOSSLESS&&t->id!=ST_DEFINEBITSLOSSLESS2); if (writer) { if (short_tag) @@ -1042,7 +1042,7 @@ void swf_FoldSprite(TAG * t) do { - if(t->len<0x3f) { + if(t->len<0x3f&&t->id!=ST_DEFINEBITSLOSSLESS&&t->id!=ST_DEFINEBITSLOSSLESS2) { swf_SetU16(sprtag,t->len|(t->id<<6)); } else { swf_SetU16(sprtag,0x3f|(t->id<<6)); -- 1.7.10.4