diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 7a66a6a1..8f05d953 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -2194,7 +2194,7 @@ func C_RTMP_Write(r *C_RTMP, buf []byte) int { buf = buf[4:] } } - return size + len(buf) + return size } /*