mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Merge pull request #26704 from vrabaud:imgcodecs_flaky
Fix flaky Imgcodecs_APNG.imwriteanimation_bgcolor
This commit is contained in:
commit
ffd0548651
@ -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