1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-28 23:03:03 +04:00

Fix flaky Imgcodecs_APNG.imwriteanimation_bgcolor

This commit is contained in:
Vincent Rabaud
2025-01-02 22:53:06 +01:00
parent 4d26e16af8
commit 2f0035b23f
+1 -1
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