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)