rtmp: tried to replicate C behaviour by returning would be no of bytes written

This commit is contained in:
saxon 2018-09-02 14:20:25 +09:30
parent 8cf8f07b9c
commit 078ba12093
1 changed files with 1 additions and 1 deletions

View File

@ -2189,7 +2189,7 @@ func C_RTMP_Write(r *C_RTMP, buf []byte) int {
return -1
}
if len(buf) < 4 {
break
return size + (len(buf) - 4)
}
buf = buf[4:]
}