From 032ffcb8b64c0bdcb00d642e105c1672ca4b352e Mon Sep 17 00:00:00 2001 From: Saxon Date: Thu, 14 Mar 2019 08:18:57 +1030 Subject: [PATCH] revid: rtmpSender.load no longer copies data --- revid/senders.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/revid/senders.go b/revid/senders.go index c89d29dc..0d4748fe 100644 --- a/revid/senders.go +++ b/revid/senders.go @@ -396,8 +396,7 @@ func newRtmpSender(url string, timeout uint, retries int, retry bool, log func(l } func (s *rtmpSender) load(d []byte) error { - s.data = make([]byte, len(d)) - copy(s.data, d) + s.data = d return nil }