diff --git a/revid/revid.go b/revid/revid.go index 3d8994d0..2ec5286b 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -462,12 +462,9 @@ loop: break loop } - // Get bytes from the chunk. - bytes := chunk.Bytes() - // Loop over encoders and hand bytes over to each one. - for _, enc := range r.encoder { - _, err := enc.Write(bytes) + for _, e := range r.encoder { + _, err := chunk.WriteTo(e) if err != nil { r.err <- err }