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
2013-11-08 15:35:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c77695ce55efdc73a8bdbb23cbd798d492bc55ef
c77695ce
1 parent
3f81cde9
add comments for extended-timestamp, always send the extended-timestamp even chunk type=0x03
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
13 行增加
和
1 行删除
trunk/src/core/srs_core_protocol.cpp
trunk/src/core/srs_core_protocol.cpp
查看文件 @
c77695c
...
...
@@ -418,7 +418,7 @@ int SrsProtocol::send_message(ISrsMessage* msg)
// chunk extended timestamp header, 0 or 4 bytes, big-endian
if
(
msg
->
header
.
timestamp
>=
RTMP_EXTENDED_TIMESTAMP
){
pp
=
(
char
*
)
&
msg
->
header
.
timestamp
;
pp
=
(
char
*
)
&
msg
->
header
.
timestamp
;
*
pheader
++
=
pp
[
3
];
*
pheader
++
=
pp
[
2
];
*
pheader
++
=
pp
[
1
];
...
...
@@ -433,6 +433,18 @@ int SrsProtocol::send_message(ISrsMessage* msg)
*
pheader
++
=
0xC0
|
(
msg
->
get_perfer_cid
()
&
0x3F
);
// chunk extended timestamp header, 0 or 4 bytes, big-endian
// 6.1.3. Extended Timestamp
// This field is transmitted only when the normal time stamp in the
// chunk message header is set to 0x00ffffff. If normal time stamp is
// set to any value less than 0x00ffffff, this field MUST NOT be
// present. This field MUST NOT be present if the timestamp field is not
// present. Type 3 chunks MUST NOT have this field.
// adobe changed for Type3 chunk:
// FMLE always sendout the extended-timestamp,
// must send the extended-timestamp to FMS,
// must send the extended-timestamp to flash-player.
// @see: ngx_rtmp_prepare_message
// @see: http://blog.csdn.net/win_lin/article/details/13363699
if
(
msg
->
header
.
timestamp
>=
RTMP_EXTENDED_TIMESTAMP
){
pp
=
(
char
*
)
&
msg
->
header
.
timestamp
;
*
pheader
++
=
pp
[
3
];
...
...
请
注册
或
登录
后发表评论