svnno****@sourc*****
svnno****@sourc*****
2011年 2月 23日 (水) 23:59:52 JST
Revision: 368 http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=368 Author: yoya Date: 2011-02-23 23:59:52 +0900 (Wed, 23 Feb 2011) Log Message: ----------- getTagDetail や swfInfo 等 detail を生成した後で getShapeData を呼ぶと正しくないデータが取れるのを修正。 Modified Paths: -------------- trunk/src/swf_object.c -------------- next part -------------- Modified: trunk/src/swf_object.c =================================================================== --- trunk/src/swf_object.c 2011-02-23 13:43:20 UTC (rev 367) +++ trunk/src/swf_object.c 2011-02-23 14:59:52 UTC (rev 368) @@ -265,6 +265,11 @@ tag = tag->next; } if (tag) { + if (tag->data) { + unsigned char *data; + *length = tag->length - 2; + return tag->data + 2; + } if (tag->detail) { bitstream_t *bs; if (tag->data) { @@ -276,11 +281,6 @@ tag->data = bitstream_steal(bs, &(tag->length)); bitstream_close(bs); } - if (tag->data) { - unsigned char *data; - *length = tag->length - 2; - return tag->data + 2; - } } *length = 0; return NULL;