Skip to content

Commit

Permalink
Issue 27: DefineSceneAndFrameLabel tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jindrapetrik committed Jan 19, 2013
1 parent ddbde7b commit 38aa38e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trunk/src/com/jpexs/asdec/tags/DefineFont3Tag.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package com.jpexs.asdec.tags;

import com.jpexs.asdec.Main;
import com.jpexs.asdec.SWFInputStream;
import com.jpexs.asdec.SWFOutputStream;
import com.jpexs.asdec.abc.CopyOutputStream;
Expand Down Expand Up @@ -129,7 +130,9 @@ public byte[] getData(int version) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
OutputStream os = baos;
SWFOutputStream sos = new SWFOutputStream(os, version);
sos = new SWFOutputStream(new CopyOutputStream(sos, new ByteArrayInputStream(data)), 10);
if(Main.DEBUG_COPY){
sos = new SWFOutputStream(new CopyOutputStream(sos, new ByteArrayInputStream(data)), 10);
}
try {
sos.writeUI16(fontId);
sos.writeUB(1, fontFlagsHasLayout ? 1 : 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ public DefineSceneAndFrameLabelDataTag(byte data[], int version, long pos) throw
sceneNames[i] = sis.readString();
}
int frameLabelCount = (int) sis.readEncodedU32();
frameNums=new long[frameLabelCount];
frameNames=new String[frameLabelCount];
for (int i = 0; i < frameLabelCount; i++) {
frameNums[i] = sis.readEncodedU32();
frameNames[i] = sis.readString();
Expand Down

0 comments on commit 38aa38e

Please sign in to comment.