Fixed: #2561 Cannot set filter strength to 128 or above

This commit is contained in:
Jindra Petřík
2025-11-16 10:40:46 +01:00
parent 0aa76cefb9
commit 8dc3efc528
18 changed files with 113 additions and 35 deletions

View File

@@ -161,6 +161,18 @@ public class SWFStreamTest {
assertEquals(ff, ff2, "Written and read value not equals. Written: " + ff + " read: " + ff2);
sis.close();
}
float[] uffs = new float[]{200.25f, 0.25f, 255.75f, 50.25f};
for (float ff : uffs) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
SWFOutputStream sos = new SWFOutputStream(baos, SWF.DEFAULT_VERSION, Utf8Helper.charsetName);
sos.writeUFIXED8(ff);
sos.close();
sis = new SWFInputStream(null, baos.toByteArray());
float ff2 = sis.readUFIXED8("test");
assertEquals(ff, ff2, "Written and read value not equals. Written: " + ff + " read: " + ff2);
sis.close();
}
}
@Test