From 2adc8b6c4ef3cb1fd9ce035d2181ea5210e0d6d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= Date: Sun, 23 Jun 2024 01:31:15 +0200 Subject: [PATCH] Slightly tweak `fcTL` ordering comment wording --- src/png/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/png/mod.rs b/src/png/mod.rs index f71846e6..df695973 100644 --- a/src/png/mod.rs +++ b/src/png/mod.rs @@ -187,7 +187,8 @@ impl PngData { let mut aux_split = self.aux_chunks.split(|c| &c.name == b"IDAT"); let aux_pre = aux_split.next().unwrap(); // Many chunks need to be before PLTE, so write all except those that explicitly need to be after - // Note: fcTL does not strictly need to be after PLTE but some software may expect it + // Note: the PNG spec does not say that fcTL needs to be after PLTE, but some decoders expect + // that (see issue #625) for chunk in aux_pre .iter() .filter(|c| !matches!(&c.name, b"bKGD" | b"hIST" | b"tRNS" | b"fcTL"))