mirror of
https://github.com/opencv/opencv.git
synced 2025-07-21 03:26:46 +08:00
Fix flaky Imgcodecs_APNG.imwriteanimation_bgcolor
This commit is contained in:
parent
4d26e16af8
commit
2f0035b23f
@ -1444,7 +1444,7 @@ bool PngEncoder::writeanimation(const Animation& animation, const std::vector<in
|
|||||||
|
|
||||||
if (i > 0 && !getRect(width, height, frames.back().getPixels(), apngFrame.getPixels(), over1.data(), bpp, rowbytes, 0, 0, 0, 3))
|
if (i > 0 && !getRect(width, height, frames.back().getPixels(), apngFrame.getPixels(), over1.data(), bpp, rowbytes, 0, 0, 0, 3))
|
||||||
{
|
{
|
||||||
frames[i - 1].setDelayNum(frames.back().getDelayNum() + apngFrame.getDelayNum());
|
frames.back().setDelayNum(frames.back().getDelayNum() + apngFrame.getDelayNum());
|
||||||
num_frames--;
|
num_frames--;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user