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-26 10:56:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
501b182dc9552b69e0cf213b73a5d6dea5ab7cd2
501b182d
1 parent
dbdfb29d
refine code, write audio immediatly
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
0 行增加
和
4 行删除
trunk/src/core/srs_core_hls.cpp
trunk/src/core/srs_core_hls.cpp
100755 → 100644
查看文件 @
501b182
...
...
@@ -579,12 +579,9 @@ int SrsTSMuxer::write_audio(u_int32_t time, SrsCodec* codec, SrsCodecSample* sam
{
int
ret
=
ERROR_SUCCESS
;
if
(
!
audio_frame
)
{
audio_frame
=
new
SrsMpegtsFrame
();
audio_frame
->
dts
=
audio_frame
->
pts
=
time
*
90
;
audio_frame
->
pid
=
TS_AUDIO_PID
;
audio_frame
->
sid
=
TS_AUDIO_AAC
;
}
for
(
int
i
=
0
;
i
<
sample
->
nb_buffers
;
i
++
)
{
SrsCodecBuffer
*
buf
=
&
sample
->
buffers
[
i
];
...
...
@@ -649,7 +646,6 @@ int SrsTSMuxer::write_audio(u_int32_t time, SrsCodec* codec, SrsCodecSample* sam
if
((
ret
=
SrsMpegtsWriter
::
write_frame
(
fd
,
audio_frame
,
audio_buffer
))
!=
ERROR_SUCCESS
)
{
return
ret
;
}
srs_freep
(
audio_frame
);
return
ret
;
}
...
...
请
注册
或
登录
后发表评论