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-09-09 14:41:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bd652e4607f59a71e3b3812e7bb7a1b87daca947
bd652e46
1 parent
4af1299e
fix build failed for stdc++
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
trunk/research/librtmp/srs_h264_raw_publish.c
trunk/research/librtmp/srs_h264_raw_publish.c
查看文件 @
bd652e4
...
...
@@ -154,7 +154,8 @@ int main(int argc, char** argv)
int
pts
=
0
;
// @remark, to decode the file.
char
*
p
=
h264_raw
;
for
(
int
count
=
0
;
p
<
h264_raw
+
file_size
;
count
++
)
{
int
count
=
0
;
for
(;
p
<
h264_raw
+
file_size
;)
{
// @remark, read a frame from file buffer.
char
*
data
=
NULL
;
int
size
=
0
;
...
...
@@ -188,7 +189,7 @@ int main(int argc, char** argv)
(
nut
==
7
?
"SPS"
:
(
nut
==
8
?
"PPS"
:
(
nut
==
5
?
"I"
:
(
nut
==
1
?
"P"
:
(
nut
==
9
?
"AUD"
:
(
nut
==
6
?
"SEI"
:
"Unknown"
)))))));
// @remark, when use encode device, it not need to sleep.
if
(
count
==
10
)
{
if
(
count
++
==
9
)
{
usleep
(
1000
*
1000
*
count
/
fps
);
count
=
0
;
}
...
...
请
注册
或
登录
后发表评论