Merge pull request #22568 from asmorkalov:as/webp_warning

Report that animated webp is not supported for now
pull/22572/head
Alexander Smorkalov 2 years ago committed by GitHub
commit 0c238c9e72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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;

Loading…
Cancel
Save