Fixed #2425 ZIP/SWC reading - "Only DEFLATED entries can have EXT descriptor" message

This commit is contained in:
Jindra Petřík
2025-04-13 12:47:45 +02:00
parent 94874d2b68
commit 859a2f8bdb
4 changed files with 45 additions and 96 deletions

View File

@@ -795,7 +795,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
}*/
if (Configuration.getPlayerSWC() != null) {
SWC swc = new SWC(new FileInputStream(Configuration.getPlayerSWC()));
SWC swc = new SWC(Configuration.getPlayerSWC());
//set allowRenameIdentifiers parameter to FALSE otherwise there will be an infinite loop
SWF swf = new SWF(swc.getOpenable("library.swf"), null, null, null, true, false, true, null, "WINDOWS-1252", false);
playerGlobalAbcIndex = new AbcIndexing(swf);
@@ -803,7 +803,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
}
if (airGlobalAbcIndex == null) {
if (Configuration.getAirSWC() != null) {
SWC swc = new SWC(new FileInputStream(Configuration.getAirSWC()));
SWC swc = new SWC(Configuration.getAirSWC());
//set allowRenameIdentifiers to FALSE
SWF swf = new SWF(swc.getOpenable("library.swf"), null, null, null, true, false, true, null, "WINDOWS-1252", false);
airGlobalAbcIndex = new AbcIndexing(swf);