Merge pull request #22568 from asmorkalov:as/webp_warning

Report that animated webp is not supported for now
This commit is contained in:
Alexander Smorkalov 2022-09-26 14:16:18 +03:00 committed by GitHub
commit 0c238c9e72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,6 +126,8 @@ bool WebPDecoder::readHeader()
WebPBitstreamFeatures features;
if (VP8_STATUS_OK == WebPGetFeatures(header, sizeof(header), &features))
{
CV_CheckEQ(features.has_animation, false, "WebP backend does not support animated webp images");
m_width = features.width;
m_height = features.height;