From 8b3169db7f6170a8a87068dd431cbcc89875db61 Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 3 Nov 2004 18:52:55 +0000 Subject: [PATCH] fix: don't insert too many removeobjects. --- src/jpeg2swf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jpeg2swf.c b/src/jpeg2swf.c index 16efc3c..4eae988 100644 --- a/src/jpeg2swf.c +++ b/src/jpeg2swf.c @@ -254,8 +254,10 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int quality, swf_ShapeSetLine(t, s, 0, -r.ymax); swf_ShapeSetEnd(t); - t = swf_InsertTag(t, ST_REMOVEOBJECT2); - swf_SetU16(t, 1); // depth + if(frame) { + t = swf_InsertTag(t, ST_REMOVEOBJECT2); + swf_SetU16(t, 1); // depth + } t = swf_InsertTag(t, ST_PLACEOBJECT2); swf_GetMatrix(NULL, &m); -- 1.7.10.4