From 0f30278e48df520d7326949bbc5c065c23176f2a Mon Sep 17 00:00:00 2001 From: Adrian Wielgosik Date: Mon, 3 Oct 2022 22:48:57 +0200 Subject: [PATCH] Add missing comment --- swf/src/read.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swf/src/read.rs b/swf/src/read.rs index d4dfa9347..f627b8028 100644 --- a/swf/src/read.rs +++ b/swf/src/read.rs @@ -1593,6 +1593,8 @@ impl<'a> Reader<'a> { } 0x13 => { + // SWF19 says focal gradients are only allowed in SWFv8+ and DefineShape4, + // but it works even in earlier tags (#2730). let gradient = self.read_gradient(shape_version)?; let focal_point = self.read_fixed8()?; if let Some(gradient) = gradient {