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-23 17:47:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
235e3cc12052d655fca7bd7c1bd8679637f545fb
235e3cc1
1 parent
2c4c91d8
add comments for PES packet length is 0
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
trunk/research/ts_info.cc
trunk/research/ts_info.cc
查看文件 @
235e3cc
...
...
@@ -1495,6 +1495,12 @@ int TSPayloadPES::demux(TSContext* ctx, TSPacket* pkt, u_int8_t* start, u_int8_t
msg
->
PES_packet_length
=
PES_packet_length
;
msg
->
packet_header_size
=
p
-
pos_packet
;
msg
->
packet_data_size
=
PES_packet_length
-
msg
->
packet_header_size
;
/**
* when actual packet length > 0xffff(65535),
* which exceed the max u_int16_t packet length,
* use 0 packet length, the next unit start indicates the end of packet.
*/
if
(
PES_packet_length
==
0
)
{
msg
->
packet_data_size
=
last
-
p
-
msg
->
packet_header_size
;
}
...
...
请
注册
或
登录
后发表评论