Skip to content

Commit

Permalink
Stable PNG compressed chunks order
Browse files Browse the repository at this point in the history
  • Loading branch information
NeRdTheNed committed Oct 10, 2023
1 parent 693aa29 commit 335c9f0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
Expand Down Expand Up @@ -412,7 +413,7 @@ public boolean write(OutputStream os) throws IOException {
private static final class PNGChunkHelper {
public ZLibFile helperIdat;
public List<ZLibFile> helperFdats = null;
public Map<PNGChunk, DeflateFilesContainer> helperDeflateStreamMapNonIDAT = new HashMap<>();
public Map<PNGChunk, DeflateFilesContainer> helperDeflateStreamMapNonIDAT = new LinkedHashMap<>();

private boolean outOfOrder = false;
private boolean readingfdAT = false;
Expand Down

0 comments on commit 335c9f0

Please sign in to comment.