Skip to content

imgcodec: gif: there are too many runtime warnings on accuracy test #27168

@Kumataro

Description

@Kumataro

System Information

OpenCV 4.x 42a1320
Ubuntu 24.04
gcc 13.3.0

Detailed description

After #27138 , there are too many runtime warnings on accuracy test .

I notice this problem on Ubuntu 24.04 at my PC.
And we can confirm then for macOS-ARM64, Windows10-x64.

https://github.com/opencv/opencv/actions/runs/14055710860/job/39436005460?pr=27138

[==========] Running 643 tests from 37 test cases.
[----------] Global test environment set-up.
[----------] 10 tests from Imgcodecs_Gif
[ RUN      ] Imgcodecs_Gif.imwriteanimation_rgba
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.
[ WARN:0@0.010] global grfmt_gif.cpp:395 lzwDecode Too long LZW length in GIF.

Steps to reproduce

./bin/opencv_test_imgcodecs

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions