do not copy big byte arrays 2...define binary tags

This commit is contained in:
honfika@gmail.com
2014-11-09 23:48:50 +01:00
parent bf88327eeb
commit 58457d31b4
9 changed files with 21 additions and 26 deletions

View File

@@ -21,6 +21,7 @@ import com.jpexs.decompiler.flash.SWF;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.console.ContextMenuTools;
import com.jpexs.decompiler.flash.tags.ABCContainerTag;
import com.jpexs.helpers.ByteArrayRange;
import com.jpexs.helpers.Cache;
import com.sun.jna.Platform;
import java.awt.event.ActionEvent;
@@ -486,7 +487,7 @@ public class MainFrameClassicMenu implements MainFrameMenu, ActionListener {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
swf.saveTo(baos);
swf.binaryData.binaryData = baos.toByteArray();
swf.binaryData.binaryData = new ByteArrayRange(baos.toByteArray());
swf.binaryData.setModified(true);
saved = true;
} catch (IOException ex) {