Report that animated webp is not supported for now.

This commit is contained in:
Alexander Smorkalov 2022-09-26 13:50:23 +03:00
parent bfeeb0ad70
commit 3d9f27b877

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;