mirror of
https://github.com/opencv/opencv.git
synced 2025-07-20 19:17:36 +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))
|
||||
{
|
||||
frames[i - 1].setDelayNum(frames.back().getDelayNum() + apngFrame.getDelayNum());
|
||||
frames.back().setDelayNum(frames.back().getDelayNum() + apngFrame.getDelayNum());
|
||||
num_frames--;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user