mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 21:23:31 +08:00
Merge pull request #27296 from sturkmen72:bugfix-gif
Fix a bug on rendering some animated gif
This commit is contained in:
commit
8035aade11
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user