From 3d9f27b87711e957994eb615e299cf353224d1a7 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Mon, 26 Sep 2022 13:50:23 +0300 Subject: [PATCH] Report that animated webp is not supported for now. --- modules/imgcodecs/src/grfmt_webp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/imgcodecs/src/grfmt_webp.cpp b/modules/imgcodecs/src/grfmt_webp.cpp index e137b8734d..99eb09e105 100644 --- a/modules/imgcodecs/src/grfmt_webp.cpp +++ b/modules/imgcodecs/src/grfmt_webp.cpp @@ -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;