From 585be402132c6a7f41a56070de77fda7e29fb8ba Mon Sep 17 00:00:00 2001 From: Stanislaw Datskevich Date: Wed, 10 Jan 2018 23:15:35 +0200 Subject: [PATCH] Update tsio.go --- 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 ee4563ed..35a898fd 100644 --- a/format/ts/tsio/tsio.go +++ b/format/ts/tsio/tsio.go @@ -193,7 +193,7 @@ func (self PMT) parseDescs(b []byte) (descs []Descriptor, err error) { desc.Tag = b[n] desc.Data = make([]byte, b[n+1]) n += 2 - if n+len(desc.Data) < len(b) { + if n+len(desc.Data) <= len(b) { copy(desc.Data, b[n:]) descs = append(descs, desc) n += len(desc.Data)