From 89e5f334da589a4eccd1ab0b02ed2679d10278ca Mon Sep 17 00:00:00 2001 From: saxon Date: Sat, 28 Jul 2018 15:47:32 +0930 Subject: [PATCH] Hopefully fixed readN problem --- rtmp/rtmp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 2dd65c25..519a2c70 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -826,6 +826,7 @@ func readN(r *C.RTMP, buffer *byte, n int) int { return 0 } } + avail = int(r.m_sb.sb_size) } if n < avail {