From 8c783210d2cdf8214b467ede4307bac522f48acd Mon Sep 17 00:00:00 2001 From: nareix Date: Mon, 18 Jul 2016 08:14:59 +0800 Subject: [PATCH] pio func change --- format/ts/tsio/tsio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format/ts/tsio/tsio.go b/format/ts/tsio/tsio.go index 9a7c37b..06e5874 100644 --- a/format/ts/tsio/tsio.go +++ b/format/ts/tsio/tsio.go @@ -549,7 +549,7 @@ func (self *TSWriter) WritePackets(w io.Writer, datav [][]byte, pcr time.Duratio } end = datavlen } - n := pio.VecSliceNoNew(datav, writev, writepos, end) + n := pio.VecSliceTo(datav, writev, writepos, end) self.tshdr[4] = byte(hdrlen)-5 // length if _, err = w.Write(self.tshdr[:hdrlen]); err != nil {