svnno****@sourc*****
svnno****@sourc*****
2008年 8月 8日 (金) 20:07:49 JST
Revision: 24 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=swfed&view=rev&rev=24 Author: yoya Date: 2008-08-08 20:07:49 +0900 (Fri, 08 Aug 2008) Log Message: ----------- - parse 処理での record_len の計算式を修正 - build 処理で record を正しく展開するように修正 Modified Paths: -------------- src/swf_tag_action.c -------------- next part -------------- Modified: src/swf_tag_action.c =================================================================== --- src/swf_tag_action.c 2008-08-08 10:17:33 UTC (rev 23) +++ src/swf_tag_action.c 2008-08-08 11:07:49 UTC (rev 24) @@ -45,7 +45,7 @@ swf_tag_action->action_sprite = 0; // fail safe } pos = bitstream_getbytepos(bs); - len = bitstream_length(bs); + len = bitstream_length(bs) - pos; swf_tag_action->action_record = bitstream_output_sub(bs, pos, len); swf_tag_action->action_record_len = len; bitstream_close(bs); @@ -56,6 +56,7 @@ swf_tag_t *tag) { (void) data; (void) id; + (void) tag; return 1; } @@ -76,12 +77,8 @@ } else { // DoAction ; // nothing } - d = swf_action_list_output(swf_tag_action->action_record, &len); - if (d == NULL) { - bitstream_close(bs); - return NULL; - } - bitstream_putstring(bs, d, len); + bitstream_putstring(bs, swf_tag_action->action_record, + swf_tag_action->action_record_len); data = bitstream_steal(bs, length); bitstream_close(bs); return data;