From 269c8176a141dfcd5897e355e765a9d44127332d Mon Sep 17 00:00:00 2001 From: saxon Date: Sun, 2 Sep 2018 10:19:29 +0930 Subject: [PATCH] rtmp: changed data slice to buf to simplify --- rtmp/rtmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index bf373377..9e6c202b 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -2112,7 +2112,7 @@ func C_RTMP_Write(r *C_RTMP, buf []byte) int { // TODO: port RTMPPacket var pkt = &r.m_write var pend, enc []byte - size := len(data) + size := len(buf) s2 := size var ret, num int