Skip to content

Commit bd1649d

Browse files
Ensure WEBP decoder unsets the restore area.
1 parent ef8c79d commit bd1649d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ImageSharp/Formats/Webp/WebpAnimationDecoder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@ private void RestoreToBackground<TPixel>(ImageFrame<TPixel> imageFrame, TPixel b
382382
Rectangle interest = Rectangle.Intersect(imageFrame.Bounds(), this.restoreArea.Value);
383383
Buffer2DRegion<TPixel> pixelRegion = imageFrame.PixelBuffer.GetRegion(interest);
384384
pixelRegion.Fill(backgroundColor);
385+
386+
this.restoreArea = null;
385387
}
386388

387389
/// <inheritdoc/>

0 commit comments

Comments
 (0)