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

@@ -22,6 +22,7 @@ import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.console.ContextMenuTools;
import com.jpexs.decompiler.flash.gui.helpers.CheckResources;
import com.jpexs.decompiler.flash.tags.ABCContainerTag;
import com.jpexs.helpers.ByteArrayRange;
import com.jpexs.helpers.Cache;
import com.jpexs.helpers.utf8.Utf8Helper;
import com.jpexs.process.ProcessTools;
@@ -861,7 +862,7 @@ public class MainFrameRibbonMenu 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) {