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
胡斌
8 years ago
1
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
94ef3288eac945d106abb9ce428018bbe42e544c
94ef3288
1 parent
e8eb050b
fix bug of report error when receive a amf3 data object
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
trunk/src/protocol/srs_rtmp_stack.cpp
trunk/src/protocol/srs_rtmp_stack.cpp
查看文件 @
94ef328
...
...
@@ -703,7 +703,7 @@ int SrsProtocol::do_decode_message(SrsMessageHeader& header, SrsBuffer* stream,
srs_verbose
(
"start to decode AMF0/AMF3 command message."
);
// skip 1bytes to decode the amf3 command.
if
(
header
.
is_amf3_command
(
)
&&
stream
->
require
(
1
))
{
if
(
(
header
.
is_amf3_command
()
||
header
.
is_amf3_data
()
)
&&
stream
->
require
(
1
))
{
srs_verbose
(
"skip 1bytes to decode AMF3 command"
);
stream
->
skip
(
1
);
}
...
...
@@ -712,7 +712,7 @@ int SrsProtocol::do_decode_message(SrsMessageHeader& header, SrsBuffer* stream,
// need to read the command name.
std
::
string
command
;
if
((
ret
=
srs_amf0_read_string
(
stream
,
command
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"decode AMF0/AMF3 command name failed.
ret=%d"
,
ret
);
srs_error
(
"decode AMF0/AMF3 command name failed.
message type:%d ret=%d"
,
header
.
message_type
,
ret
);
return
ret
;
}
srs_verbose
(
"AMF0/AMF3 command message, command_name=%s"
,
command
.
c_str
());
...
...
胡斌
@hubin
8 years ago
mentioned in commit
bd7452d0
请
注册
或
登录
后发表评论