X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjpeg2swf.c;h=4eae988197af062063aa11631290f9376ceb104c;hb=8b3169db7f6170a8a87068dd431cbcc89875db61;hp=16efc3c8dbb5d957e152afcb4cececb1070f8c3a;hpb=c9547ee5f58fc8b95db19b3a0c70b095dbc8d987;p=swftools.git 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);