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
2016-08-30 19:29:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a0890fe06aa663f656bbb6de2ef2ae07e7821779
a0890fe0
1 parent
d919668b
comment the pcr
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
9 行增加
和
0 行删除
README.md
trunk/src/kernel/srs_kernel_ts.cpp
README.md
查看文件 @
a0890fe
...
...
@@ -340,6 +340,7 @@ Remark:
## History
*
v2.0, 2016-08-30, comment the pcr.
*
v2.0, 2016-08-18, fix
[
srs-librtmp#4
](
https://github.com/ossrs/srs-librtmp/issues/4
)
filter frame.
*
v2.0, 2016-08-10, fix socket timeout for librtmp.
*
v2.0, 2016-08-08, fix the crash by srs_info log.
...
...
trunk/src/kernel/srs_kernel_ts.cpp
查看文件 @
a0890fe
...
...
@@ -470,6 +470,14 @@ int SrsTsContext::encode_pes(SrsFileWriter* writer, SrsTsMessage* msg, int16_t p
// it's ok to set pcr equals to dts,
// @see https://github.com/ossrs/srs/issues/311
// Fig. 3.18. Program Clock Reference of Digital-Video-and-Audio-Broadcasting-Technology, page 65
// In MPEG-2, these are the "Program Clock Refer- ence" (PCR) values which are
// nothing else than an up-to-date copy of the STC counter fed into the transport
// stream at a certain time. The data stream thus carries an accurate internal
// "clock time". All coding and de- coding processes are controlled by this clock
// time. To do this, the receiver, i.e. the MPEG decoder, must read out the
// "clock time", namely the PCR values, and compare them with its own internal
// system clock, that is to say its own 42 bit counter.
int64_t
pcr
=
write_pcr
?
msg
->
dts
:
-
1
;
// TODO: FIXME: finger it why use discontinuity of msg.
...
...
请
注册
或
登录
后发表评论