Skip to content

Commit

Permalink
Fix flaky Imgcodecs_APNG.imwriteanimation_bgcolor
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabaud committed Jan 2, 2025
1 parent 4d26e16 commit 2f0035b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/imgcodecs/src/grfmt_png.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f0035b

Please sign in to comment.