Merge pull request #27296 from sturkmen72:bugfix-gif

Fix a bug on rendering some animated gif
This commit is contained in:
Alexander Smorkalov 2025-05-12 09:14:07 +03:00 committed by GitHub
commit 8035aade11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,7 @@ bool GifDecoder::readData(Mat &img) {
globalColorTable[bgColor * 3 + 1], // G globalColorTable[bgColor * 3 + 1], // G
globalColorTable[bgColor * 3 + 0], // R globalColorTable[bgColor * 3 + 0], // R
0); // A 0); // A
restore = Mat(width, height, CV_8UC4, background); restore = Mat(height, width, CV_8UC4, background);
} }
else else
{ {