From 6da0967b807437fae50b3c23d1ac6c590067b857 Mon Sep 17 00:00:00 2001 From: saxon Date: Sun, 2 Sep 2018 12:27:25 +0930 Subject: [PATCH] rtmp: removed check to see if byte slice length is less that 0 - which doesn't happen --- rtmp/rtmp.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 7fcd59bc..aee3ef32 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -2189,9 +2189,6 @@ func C_RTMP_Write(r *C_RTMP, buf []byte) int { return -1 } buf = buf[4:] - if len(buf) < 0 { - break - } } } return size + len(buf)