Commit Graph

372 Commits

Author SHA1 Message Date
Dan Kortschak ea5c54c85d rtmp: remove unsafe and C imports from amf.go
unsafe importing functions moved to rtmp.go.
2018-09-26 12:10:03 +09:30
Dan Kortschak 61798fd4a6 rtmp: make C_AMF_Decode take a []byte
Also remove never-executed and incorrect error retry logic.
2018-09-26 12:10:03 +09:30
Dan Kortschak 04bd966c89 rtmp: make encoders return []byte 2018-09-26 12:10:03 +09:30
Dan Kortschak e0311dae58 rtmp: make C_AMF_PropEncode take a []byte 2018-09-26 12:10:03 +09:30
Dan Kortschak b8742e9927 rtmp: make C_AMFObject hold a []C_AMFObjectProperty 2018-09-26 12:10:03 +09:30
Dan Kortschak 52f34e4a85 rtmp: make C_AMF_EncodeNamed{Boolean,Number,String} take []byte 2018-09-26 12:10:03 +09:30
Dan Kortschak 458eb932aa rtmp: make C_AMF_EncodeNumber take []byte 2018-09-26 12:10:03 +09:30
Dan Kortschak 00b4e167f4 rtmp: make C_AMF_EncodeBoolean take a []byte 2018-09-26 12:10:03 +09:30
Dan Kortschak cf87480070 rtmp: make C_AMF_EncodeInt{24,32,String} take []byte 2018-09-26 12:10:03 +09:30
Dan Kortschak a2620e003b rtmp: make C_EncodeInt32LE take a []byte dst 2018-09-26 12:10:03 +09:30
Dan Kortschak 4f2beed32f rtmp: make decoders take []byte 2018-09-26 12:10:03 +09:30
Dan Kortschak b86ba9e49a rtmp: use bool for m_bSendEncoding and m_bSendEncoding 2018-09-26 12:10:03 +09:30
Dan Kortschak b45f70bdf8 rtmp: make C_RTMP.m_vecChannelsOut a []*C_RTMPPacket 2018-09-26 12:10:03 +09:30
Dan Kortschak 0c124eb761 rtmp: make C_RTMP.m_vecChannelsIn a []*C_RTMPPacket 2018-09-26 12:10:03 +09:30
Dan Kortschak 46786f2436 rtmp: simplify packet allocation 2018-09-26 12:10:03 +09:30
Dan Kortschak 66cdea021c rtmp: remove incorrect and redundant calloc implementation 2018-09-26 12:10:03 +09:30
Dan Kortschak f237b5453e rtmp: make C_RTMP.m_channelTimestamp a []int32 2018-09-26 12:10:03 +09:30
Dan Kortschak 86e07e2b32 rtmp: make C_RTMPChunk.c_chunk a []byte 2018-09-26 12:10:03 +09:30
Dan Kortschak f387b827ae rtmp: remove unnecessary type conversions 2018-09-26 12:10:03 +09:30
Dan Kortschak 6978c44de6 rtmp: make m_methodCalls field a slice 2018-09-26 12:10:03 +09:30
Dan Kortschak 26e3bd264a rtmp: remove read type 2018-09-26 12:10:03 +09:30
Dan Kortschak 834c2bc632 rtmp: remove C_AVal 2018-09-07 20:40:46 +09:30
Dan Kortschak dde20e1a7b rtmp: more simplification of url parsing 2018-09-07 19:41:55 +09:30
Dan Kortschak 9212bed0ed rtmp: simplify url parsing 2018-09-07 07:02:12 +09:30
Dan Kortschak bf2a2ec7a8 rtmp: remove C_AVal from C_RTMP_METHOD 2018-09-06 19:18:17 +09:30
Dan Kortschak 28f5ec6a47 rtmp: make isready return a bool 2018-09-06 18:40:47 +09:30
Dan Kortschak b1c904ee22 rtmp: reduce CAV/AVC conversions 2018-09-06 18:31:14 +09:30
Dan Kortschak 42f7316f09 rtmp: ensure we catch invalid methods 2018-09-06 18:06:45 +09:30
Dan Kortschak 569cc100fa retmp: simplify big switch 2018-09-06 18:05:01 +09:30
Dan Kortschak fed9d366c6 rtmp: remove C_Aval from C_AMFObjectProperty 2018-09-06 16:49:25 +09:30
Dan Kortschak c4800034a6 rtmp: remove C_AVal from P_vu 2018-09-06 16:10:15 +09:30
Dan Kortschak f005c31b44 rtmp: encode/decode typed boolean 2018-09-06 15:36:27 +09:30
Dan Kortschak 470e61a465 rtmp: remove C_AVal from encoder/decoder functions 2018-09-06 15:32:29 +09:30
Dan Kortschak 019a1f1c90 rtmp: make string decoding a returning function 2018-09-06 12:46:07 +09:30
Dan Kortschak a626a740ea rtmp: remove missed comments 2018-09-06 12:29:03 +09:30
Dan Kortschak aac0801cdb rtmp: use bytes.Equal for signature matching 2018-09-06 12:26:35 +09:30
Dan Kortschak 6c6ed78e8f rtmp: convert boolish ints to bool 2018-09-06 12:18:45 +09:30
Dan Kortschak f3a0968fb4 rtmp: port C_CloseInternal 2018-09-06 11:46:48 +09:30
Dan Kortschak 8674b23b28 rtmp: port C_SendFCUnpublish 2018-09-06 11:26:52 +09:30
Dan Kortschak b7c148fd93 rtmp: simplify body pointer setup 2018-09-06 11:11:29 +09:30
Dan Kortschak c31021149d rtmp: remove redundant comments 2018-09-06 11:04:08 +09:30
Dan Kortschak 7bfea781b4 rtmp: remove redundant size adjustment 2018-09-04 14:07:49 +09:30
saxon 078ba12093 rtmp: tried to replicate C behaviour by returning would be no of bytes written 2018-09-02 14:20:25 +09:30
saxon 8cf8f07b9c rtmp: corrected C_RTMP_Write c file line number 2018-09-02 13:40:18 +09:30
saxon 3d3ec6b893 rtmp: check that len(buf) is not less than 4 before buf = buf[4:] 2018-09-02 13:31:52 +09:30
saxon 6da0967b80 rtmp: removed check to see if byte slice length is less that 0 - which doesn't happen 2018-09-02 12:27:25 +09:30
saxon 9b152f0495 rtmp: removed math.Abs in C_RTMP_Write for checking noOfBytesRead 2018-09-02 11:35:32 +09:30
saxon 24968c83b3 rtmp: removed use of s2 and replaced with len(buf) 2018-09-02 11:32:11 +09:30
saxon 390c882792 rtmp: removed comments containing previous code in C_RTMP_Write 2018-09-02 10:21:10 +09:30
saxon 269c8176a1 rtmp: changed data slice to buf to simplify 2018-09-02 10:19:29 +09:30