mirror of https://bitbucket.org/ausocean/av.git
Fixed to the extent that youtube thinks stream is starting but nothing playing
This commit is contained in:
parent
7b20e8f767
commit
4819cc92ec
|
@ -144,15 +144,14 @@ func rtmpWrite(r *C.RTMP, data []byte) int {
|
|||
s2 -= 13
|
||||
}
|
||||
|
||||
buf = (*C.char)(unsafe.Pointer(uintptr(unsafe.Pointer(buf)) + uintptr(1)))
|
||||
pkt.m_packetType = C.uchar(*(*byte)(unsafe.Pointer(buf)))
|
||||
|
||||
buf = (*C.char)(unsafe.Pointer(uintptr(unsafe.Pointer(buf)) + uintptr(1)))
|
||||
pkt.m_nBodySize = C.AMF_DecodeInt24(buf)
|
||||
buf = (*C.char)(unsafe.Pointer(uintptr(unsafe.Pointer(buf)) + uintptr(3)))
|
||||
pkt.m_nTimeStamp = C.AMF_DecodeInt24(buf)
|
||||
buf = (*C.char)(unsafe.Pointer(uintptr(unsafe.Pointer(buf)) + uintptr(4)))
|
||||
pkt.m_nTimeStamp |= C.uint(*(*byte)(unsafe.Pointer(buf)) << 24)
|
||||
buf = (*C.char)(unsafe.Pointer(uintptr(unsafe.Pointer(buf)) + uintptr(3)))
|
||||
pkt.m_nTimeStamp |= C.uint(*(*byte)(unsafe.Pointer(buf)) << 24)
|
||||
buf = (*C.char)(unsafe.Pointer(uintptr(unsafe.Pointer(buf)) + uintptr(4)))
|
||||
s2 -= 11
|
||||
|
||||
if ((pkt.m_packetType == C.RTMP_PACKET_TYPE_AUDIO ||
|
||||
|
|
Loading…
Reference in New Issue