Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2015-12-22 17:01:06 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
65b81a4e685a653e5f0f576e1031fe46caae022a
65b81a4e
2 parents
b881166f
8b24319f
merge from srs2
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
24 行增加
和
3 行删除
README.md
trunk/src/protocol/srs_rtmp_handshake.cpp
trunk/src/protocol/srs_rtmp_stack.cpp
README.md
查看文件 @
65b81a4
...
...
@@ -1289,6 +1289,7 @@ Winlin
[
bug #518
]:
https://github.com/ossrs/srs/issues/518
[
bug #541
]:
https://github.com/ossrs/srs/issues/541
[
bug #546
]:
https://github.com/ossrs/srs/issues/546
[
bug #418
]:
https://github.com/ossrs/srs/issues/418
[
bug #xxxxxxxxxx
]:
https://github.com/ossrs/srs/issues/xxxxxxxxxx
[
exo #828
]:
https://github.com/google/ExoPlayer/pull/828
...
...
trunk/src/protocol/srs_rtmp_handshake.cpp
查看文件 @
65b81a4
...
...
@@ -1164,6 +1164,11 @@ int SrsSimpleHandshake::handshake_with_server(SrsHandshakeBytes* hs_bytes, ISrsP
if
((
ret
=
hs_bytes
->
create_c2
())
!=
ERROR_SUCCESS
)
{
return
ret
;
}
// for simple handshake, copy s1 to c2.
// @see https://github.com/ossrs/srs/issues/418
memcpy
(
hs_bytes
->
c2
,
hs_bytes
->
s0s1s2
+
1
,
1536
);
if
((
ret
=
io
->
write
(
hs_bytes
->
c2
,
1536
,
&
nsize
))
!=
ERROR_SUCCESS
)
{
srs_warn
(
"simple handshake write c2 failed. ret=%d"
,
ret
);
return
ret
;
...
...
trunk/src/protocol/srs_rtmp_stack.cpp
查看文件 @
65b81a4
...
...
@@ -3300,9 +3300,24 @@ int SrsConnectAppResPacket::decode(SrsBuffer* stream)
ret
=
ERROR_SUCCESS
;
}
if
((
ret
=
props
->
read
(
stream
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"amf0 decode connect props failed. ret=%d"
,
ret
);
return
ret
;
// for RED5(1.0.6), the props is NULL, we must ignore it.
// @see https://github.com/ossrs/srs/issues/418
if
(
!
stream
->
empty
())
{
SrsAmf0Any
*
p
=
NULL
;
if
((
ret
=
srs_amf0_read_any
(
stream
,
&
p
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"amf0 decode connect props failed. ret=%d"
,
ret
);
return
ret
;
}
// ignore when props is not amf0 object.
if
(
!
p
->
is_object
())
{
srs_warn
(
"ignore connect response props marker=%#x."
,
(
u_int8_t
)
p
->
marker
);
srs_freep
(
p
);
}
else
{
srs_freep
(
props
);
props
=
p
->
to_object
();
srs_info
(
"accept amf0 object connect response props"
);
}
}
if
((
ret
=
info
->
read
(
stream
))
!=
ERROR_SUCCESS
)
{
...
...
请
注册
或
登录
后发表评论