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-03-10 17:58:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6c11207e28c273649fb47c469c0c4818e2c64524
6c11207e
1 parent
5c3c3868
fix http ts bug, the adts use id=1 which indicates the aac encoding.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
trunk/src/kernel/srs_kernel_ts.cpp
trunk/src/kernel/srs_kernel_ts.cpp
查看文件 @
6c11207
...
...
@@ -2772,12 +2772,12 @@ int SrsTsCache::do_cache_aac(SrsAvcAacCodec* codec, SrsCodecSample* sample)
// 6.2 Audio Data Transport Stream, ADTS
// in aac-iso-13818-7.pdf, page 26.
// fixed 7bytes header
static
u_int8_t
adts_header
[
7
]
=
{
0xff
,
0xf
1
,
0x00
,
0x00
,
0x00
,
0x0f
,
0xfc
};
static
u_int8_t
adts_header
[
7
]
=
{
0xff
,
0xf
9
,
0x00
,
0x00
,
0x00
,
0x0f
,
0xfc
};
/*
// adts_fixed_header
// 2B, 16bits
int16_t syncword; //12bits, '1111 1111 1111'
int8_t ID; //1bit, '
0
'
int8_t ID; //1bit, '
1
'
int8_t layer; //2bits, '00'
int8_t protection_absent; //1bit, can be '1'
// 12bits
...
...
请
注册
或
登录
后发表评论