Hopefully fixed readN problem

This commit is contained in:
saxon 2018-07-28 15:47:32 +09:30
parent 159a21c73a
commit 89e5f334da
1 changed files with 1 additions and 0 deletions

View File

@ -826,6 +826,7 @@ func readN(r *C.RTMP, buffer *byte, n int) int {
return 0 return 0
} }
} }
avail = int(r.m_sb.sb_size)
} }
if n < avail { if n < avail {