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-01-22 17:35:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0f59073400d55f2dd768f9e48c27ea5f85b6a88b
0f590734
1 parent
913f98b9
refine code, rename the pts to dts although both ok for audio.
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
trunk/src/app/srs_app_hls.cpp
trunk/src/app/srs_app_hls.cpp
查看文件 @
0f59073
...
...
@@ -1458,13 +1458,13 @@ int SrsHls::on_audio(SrsSharedPtrMessage* __audio)
return
ret
;
}
// the pts calc from rtmp/flv header.
int64_t
pts
=
audio
->
timestamp
*
90
;
// the dts calc from rtmp/flv header.
int64_t
dts
=
audio
->
timestamp
*
90
;
// for pure audio, we need to update the stream dts also.
stream_dts
=
p
ts
;
stream_dts
=
d
ts
;
if
((
ret
=
hls_cache
->
write_audio
(
codec
,
muxer
,
p
ts
,
sample
))
!=
ERROR_SUCCESS
)
{
if
((
ret
=
hls_cache
->
write_audio
(
codec
,
muxer
,
d
ts
,
sample
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"hls cache write audio failed. ret=%d"
,
ret
);
return
ret
;
}
...
...
请
注册
或
登录
后发表评论