diff --git a/writer.go b/writer.go index 12de5ae..a663750 100644 --- a/writer.go +++ b/writer.go @@ -659,6 +659,7 @@ func (enc *Encoder) Encode(w io.Writer, a APNG) error { e.enc = enc e.w = w e.a = a + e.seq = 0 var pal color.Palette // cbP8 encoding needs PalettedImage's ColorIndexAt method.