Report that animated webp is not supported for now.
authorAlexander Smorkalov <alexander.smorkalov@xperience.ai>
Mon, 26 Sep 2022 10:50:23 +0000 (13:50 +0300)
committerAlexander Smorkalov <alexander.smorkalov@xperience.ai>
Mon, 26 Sep 2022 10:53:49 +0000 (13:53 +0300)
modules/imgcodecs/src/grfmt_webp.cpp

index e137b8734db9e139dadbacd9808413b61badce40..99eb09e105e6649a484d4e51ef4352ced0d97745 100644 (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;