When cloning an animated image decoder, we asserted that Decoder::HasAnimation was true. This is incorrect because if the decoder has yet to complete the metadata decoding, or it has but only finds out the image is animated when it discovers the second frame, then we will try to clone a valid animated image decoder, but fail the assertion. Instead, this patch verifies the image type supports animations.
13 KiB
13 KiB