From: Alexander Smorkalov Date: Mon, 26 Sep 2022 10:50:23 +0000 (+0300) Subject: Report that animated webp is not supported for now. X-Git-Tag: accepted/tizen/unified/20230127.161057~1^2~6^2~39^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d9f27b87711e957994eb615e299cf353224d1a7;p=platform%2Fupstream%2Fopencv.git Report that animated webp is not supported for now. --- 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;