Merge pull request #26704 from vrabaud:imgcodecs_flaky

Fix flaky Imgcodecs_APNG.imwriteanimation_bgcolor
This commit is contained in:
Alexander Smorkalov 2025-01-03 10:25:06 +03:00 committed by GitHub
commit ffd0548651
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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