Browse Source

encode FrameDuration

pull/2569/head
Poker 3 years ago
parent
commit
dbb89603ee
No known key found for this signature in database GPG Key ID: C65A6AD457D5C8F8
  1. 3
      src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs
  2. 3
      src/ImageSharp/Formats/Webp/Lossy/Vp8Encoder.cs

3
src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs

@ -307,7 +307,8 @@ internal class Vp8LEncoder : IDisposable
prevPosition = BitWriterBase.WriteAnimationFrame(stream, new()
{
Width = (uint)frame.Width,
Height = (uint)frame.Height
Height = (uint)frame.Height,
Duration = frame.Metadata.GetWebpMetadata().FrameDuration
});
}

3
src/ImageSharp/Formats/Webp/Lossy/Vp8Encoder.cs

@ -477,7 +477,8 @@ internal class Vp8Encoder : IDisposable
prevPosition = BitWriterBase.WriteAnimationFrame(stream, new()
{
Width = (uint)frame.Width,
Height = (uint)frame.Height
Height = (uint)frame.Height,
Duration = frame.Metadata.GetWebpMetadata().FrameDuration
});
}

Loading…
Cancel
Save