[Swfed-svn] swfed-svn [568] UI16(LE) の書きこみマクロの不具合修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 5月 26日 (木) 18:56:03 JST


Revision: 568
          http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=568
Author:   yoya
Date:     2011-05-26 18:56:03 +0900 (Thu, 26 May 2011)

Log Message:
-----------
UI16(LE)の書きこみマクロの不具合修正
(CID 入れ替えで 256 以上の値が 1 に巻き戻る問題が発生していた)

Modified Paths:
--------------
    trunk/src/swf_define.h

Added Paths:
-----------
    trunk/src/tests/4color-300.swf
    trunk/src/tests/movieclip004.phpt


-------------- next part --------------
Modified: trunk/src/swf_define.h
===================================================================
--- trunk/src/swf_define.h	2011-05-13 17:41:34 UTC (rev 567)
+++ trunk/src/swf_define.h	2011-05-26 09:56:03 UTC (rev 568)
@@ -62,7 +62,7 @@
 #define GetULongLE(data) ((unsigned long) GV4B(data[3], data[2], data[1], data[0]))
 #define GetDoubleIEEE(data) ((double) GV8B(data[4], data[5], data[6], data[7], data[0], data[1], data[2], data[3]))
 
-#define PutUShortLE(data, value) ((data[0] = (value & 0xff)), (data[1] = (value >> 16)))
+#define PutUShortLE(data, value) ((data[0] = (value & 0xff)), (data[1] = (value >> 8)))
 
 // tag
 

Added: trunk/src/tests/4color-300.swf
===================================================================
(Binary files differ)


Property changes on: trunk/src/tests/4color-300.swf
___________________________________________________________________
Added: svn:mime-type
   + application/x-shockwave-flash

Added: trunk/src/tests/movieclip004.phpt
===================================================================
--- trunk/src/tests/movieclip004.phpt	                        (rev 0)
+++ trunk/src/tests/movieclip004.phpt	2011-05-26 09:56:03 UTC (rev 568)
@@ -0,0 +1,21 @@
+--TEST--
+replaceMovieClip 300 defineshape & placeobject
+--FILE--
+<?php
+
+$swf_filename = 'tests/negimiku.swf';
+$swf_filename2 = 'tests/4color-300.swf';
+
+$swfdata = file_get_contents($swf_filename);
+$swfdata2 = file_get_contents($swf_filename2);
+$obj = new SWFEditor();
+
+$obj->input($swfdata);
+
+$obj->replaceMovieClip('miku', $swfdata2);
+echo md5($obj->output())."\n";
+?>
+===DONE===
+--EXPECTF--
+72a21c2e2100a7f14fc9785341636541
+===DONE===



Swfed-svn メーリングリストの案内
Back to archive index