Issue #395 GFx tag fixes

This commit is contained in:
Jindra Petk
2013-09-23 20:04:19 +02:00
parent f07be3b21f
commit 691e91bbe4
4 changed files with 30 additions and 6 deletions

View File

@@ -379,7 +379,7 @@ public class SWFOutputStream extends OutputStream {
int tagLength = data.length;
int tagID = tag.getId();
int tagIDLength = (tagID << 6);
if ((tagLength < 0x3f) && (!tag.forceWriteAsLong)) {
if ((tagLength <= 62) && (!tag.forceWriteAsLong)) {
tagIDLength += tagLength;
sos.writeUI16(tagIDLength);
} else {