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
2014-11-15 16:07:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ecfbcd68d868a617792dfe4f2917f5473fc6432c
ecfbcd68
1 parent
3292136f
refine srslibrtmp, rename flv_bool to srs_flv_bool
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
7 行增加
和
7 行删除
trunk/src/libs/srs_librtmp.cpp
trunk/src/libs/srs_librtmp.hpp
trunk/src/libs/srs_librtmp.cpp
查看文件 @
ecfbcd6
...
...
@@ -767,17 +767,17 @@ void srs_flv_lseek(srs_flv_t flv, int64_t offset)
context
->
reader
.
lseek
(
offset
);
}
flv_bool
srs_flv_is_eof
(
int
error_code
)
srs_
flv_bool
srs_flv_is_eof
(
int
error_code
)
{
return
error_code
==
ERROR_SYSTEM_FILE_EOF
;
}
flv_bool
srs_flv_is_sequence_header
(
char
*
data
,
int32_t
size
)
srs_
flv_bool
srs_flv_is_sequence_header
(
char
*
data
,
int32_t
size
)
{
return
SrsFlvCodec
::
video_is_sequence_header
(
data
,
(
int
)
size
);
}
flv_bool
srs_flv_is_keyframe
(
char
*
data
,
int32_t
size
)
srs_
flv_bool
srs_flv_is_keyframe
(
char
*
data
,
int32_t
size
)
{
return
SrsFlvCodec
::
video_is_keyframe
(
data
,
(
int
)
size
);
}
...
...
trunk/src/libs/srs_librtmp.hpp
查看文件 @
ecfbcd6
...
...
@@ -269,7 +269,7 @@ extern const char* srs_format_time();
**************************************************************
*************************************************************/
typedef
void
*
srs_flv_t
;
typedef
int
flv_bool
;
typedef
int
srs_
flv_bool
;
/* open flv file for both read/write. */
extern
srs_flv_t
srs_flv_open_read
(
const
char
*
file
);
extern
srs_flv_t
srs_flv_open_write
(
const
char
*
file
);
...
...
@@ -344,20 +344,20 @@ extern int64_t srs_flv_tellg(srs_flv_t flv);
extern
void
srs_flv_lseek
(
srs_flv_t
flv
,
int64_t
offset
);
/* error code */
/* whether the error code indicates EOF */
extern
flv_bool
srs_flv_is_eof
(
int
error_code
);
extern
srs_
flv_bool
srs_flv_is_eof
(
int
error_code
);
/* media codec */
/**
* whether the video body is sequence header
* @param data, the data of tag, read by srs_flv_read_tag_data().
* @param size, the size of tag, read by srs_flv_read_tag_data().
*/
extern
flv_bool
srs_flv_is_sequence_header
(
char
*
data
,
int32_t
size
);
extern
srs_
flv_bool
srs_flv_is_sequence_header
(
char
*
data
,
int32_t
size
);
/**
* whether the video body is keyframe
* @param data, the data of tag, read by srs_flv_read_tag_data().
* @param size, the size of tag, read by srs_flv_read_tag_data().
*/
extern
flv_bool
srs_flv_is_keyframe
(
char
*
data
,
int32_t
size
);
extern
srs_
flv_bool
srs_flv_is_keyframe
(
char
*
data
,
int32_t
size
);
/*************************************************************
**************************************************************
...
...
请
注册
或
登录
后发表评论