From 1f3e02bd416c100bbc49df8cae30dd9601a70e1b Mon Sep 17 00:00:00 2001 From: yoya Date: Wed, 23 Feb 2011 14:59:52 +0000 Subject: [PATCH] =?utf8?q?getTagDetail=20=E3=82=84=20swfInfo=20=E7=AD=89?= =?utf8?q?=20detail=20=E3=82=92=E7=94=9F=E6=88=90=E3=81=97=E3=81=9F?= =?utf8?q?=E5=BE=8C=E3=81=A7=20getShapeData=20=E3=82=92=E5=91=BC=E3=81=B6?= =?utf8?q?=E3=81=A8=E6=AD=A3=E3=81=97=E3=81=8F=E3=81=AA=E3=81=84=E3=83=87?= =?utf8?q?=E3=83=BC=E3=82=BF=E3=81=8C=E5=8F=96=E3=82=8C=E3=82=8B=E3=81=AE?= =?utf8?q?=E3=82=92=E4=BF=AE=E6=AD=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/swfed/trunk@368 7c90b180-03d5-4157-b861-58a559ae9d1e --- src/swf_object.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/swf_object.c b/src/swf_object.c index f9ca68a..651de17 100644 --- a/src/swf_object.c +++ b/src/swf_object.c @@ -265,6 +265,11 @@ swf_object_get_tagcontents_bycid(swf_object_t *swf, int cid, 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 @@ swf_object_get_tagcontents_bycid(swf_object_t *swf, int cid, 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; -- 2.11.0