mirror of https://bitbucket.org/ausocean/av.git
About to test
This commit is contained in:
parent
46cff84322
commit
18cdcde149
|
@ -108,8 +108,8 @@ func byteSliceToCArr(buf []byte) *C.char {
|
|||
|
||||
func (s *session) rtmpWrite(r *C.RTMP, buf []byte) int {
|
||||
var pkt *C.RTMPPacket = &r.m_write
|
||||
size := len(buf)
|
||||
var enc unsafe.Pointer
|
||||
size := len(buf)
|
||||
s2 := size
|
||||
var ret, num int
|
||||
|
||||
|
@ -186,8 +186,6 @@ func (s *session) rtmpWrite(r *C.RTMP, buf []byte) int {
|
|||
|
||||
pkt.m_nBytesRead += C.uint(num)
|
||||
s2 -= num
|
||||
|
||||
//buf += num
|
||||
buf = buf[num:]
|
||||
|
||||
if pkt.m_nBytesRead == pkt.m_nBodySize {
|
||||
|
|
Loading…
Reference in New Issue