From: kramm Date: Sun, 9 Dec 2007 17:02:05 +0000 (+0000) Subject: fixed problem for SWFs without an END tag X-Git-Tag: buttons-working~463 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=af67778ee75db87875513ee9545d90649504c877 fixed problem for SWFs without an END tag --- diff --git a/src/swfbbox.c b/src/swfbbox.c index 138ad1e..9fbacaf 100644 --- a/src/swfbbox.c +++ b/src/swfbbox.c @@ -543,7 +543,7 @@ static SRECT getMovieClipBBox(TAG*tag) memset(&movieSize,0,sizeof(SRECT)); - while (tag->id != ST_END) { + while (tag && tag->id != ST_END) { if (swf_isPlaceTag(tag)) { if(hasid(tag)) { depth2id[swf_GetDepth(tag)] = swf_GetPlaceID(tag);