Skip to content

Commit 3bf8c57

Browse files
committed
manual port of 3.1 gif decoder
1 parent 28c20de commit 3bf8c57

File tree

5 files changed

+527
-334
lines changed

5 files changed

+527
-334
lines changed

src/ImageSharp/Formats/Gif/GifDecoder.cs

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ public sealed class GifDecoder : IImageDecoder, IGifDecoderOptions, IImageInfoDe
2323
/// </summary>
2424
public FrameDecodingMode DecodingMode { get; set; } = FrameDecodingMode.All;
2525

26+
/// <summary>
27+
/// Gets or sets the maximum number of gif frames.
28+
/// </summary>
29+
public uint MaxFrames { get; set; } = uint.MaxValue;
30+
2631
/// <inheritdoc/>
2732
public Image<TPixel> Decode<TPixel>(Configuration configuration, Stream stream, CancellationToken cancellationToken)
2833
where TPixel : unmanaged, IPixel<TPixel>

0 commit comments

Comments
 (0)