正在显示
2 个修改的文件
包含
7 行增加
和
7 行删除
@@ -767,17 +767,17 @@ void srs_flv_lseek(srs_flv_t flv, int64_t offset) | @@ -767,17 +767,17 @@ void srs_flv_lseek(srs_flv_t flv, int64_t offset) | ||
767 | context->reader.lseek(offset); | 767 | context->reader.lseek(offset); |
768 | } | 768 | } |
769 | 769 | ||
770 | -flv_bool srs_flv_is_eof(int error_code) | 770 | +srs_flv_bool srs_flv_is_eof(int error_code) |
771 | { | 771 | { |
772 | return error_code == ERROR_SYSTEM_FILE_EOF; | 772 | return error_code == ERROR_SYSTEM_FILE_EOF; |
773 | } | 773 | } |
774 | 774 | ||
775 | -flv_bool srs_flv_is_sequence_header(char* data, int32_t size) | 775 | +srs_flv_bool srs_flv_is_sequence_header(char* data, int32_t size) |
776 | { | 776 | { |
777 | return SrsFlvCodec::video_is_sequence_header(data, (int)size); | 777 | return SrsFlvCodec::video_is_sequence_header(data, (int)size); |
778 | } | 778 | } |
779 | 779 | ||
780 | -flv_bool srs_flv_is_keyframe(char* data, int32_t size) | 780 | +srs_flv_bool srs_flv_is_keyframe(char* data, int32_t size) |
781 | { | 781 | { |
782 | return SrsFlvCodec::video_is_keyframe(data, (int)size); | 782 | return SrsFlvCodec::video_is_keyframe(data, (int)size); |
783 | } | 783 | } |
@@ -269,7 +269,7 @@ extern const char* srs_format_time(); | @@ -269,7 +269,7 @@ extern const char* srs_format_time(); | ||
269 | ************************************************************** | 269 | ************************************************************** |
270 | *************************************************************/ | 270 | *************************************************************/ |
271 | typedef void* srs_flv_t; | 271 | typedef void* srs_flv_t; |
272 | -typedef int flv_bool; | 272 | +typedef int srs_flv_bool; |
273 | /* open flv file for both read/write. */ | 273 | /* open flv file for both read/write. */ |
274 | extern srs_flv_t srs_flv_open_read(const char* file); | 274 | extern srs_flv_t srs_flv_open_read(const char* file); |
275 | extern srs_flv_t srs_flv_open_write(const char* file); | 275 | 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); | @@ -344,20 +344,20 @@ extern int64_t srs_flv_tellg(srs_flv_t flv); | ||
344 | extern void srs_flv_lseek(srs_flv_t flv, int64_t offset); | 344 | extern void srs_flv_lseek(srs_flv_t flv, int64_t offset); |
345 | /* error code */ | 345 | /* error code */ |
346 | /* whether the error code indicates EOF */ | 346 | /* whether the error code indicates EOF */ |
347 | -extern flv_bool srs_flv_is_eof(int error_code); | 347 | +extern srs_flv_bool srs_flv_is_eof(int error_code); |
348 | /* media codec */ | 348 | /* media codec */ |
349 | /** | 349 | /** |
350 | * whether the video body is sequence header | 350 | * whether the video body is sequence header |
351 | * @param data, the data of tag, read by srs_flv_read_tag_data(). | 351 | * @param data, the data of tag, read by srs_flv_read_tag_data(). |
352 | * @param size, the size of tag, read by srs_flv_read_tag_data(). | 352 | * @param size, the size of tag, read by srs_flv_read_tag_data(). |
353 | */ | 353 | */ |
354 | -extern flv_bool srs_flv_is_sequence_header(char* data, int32_t size); | 354 | +extern srs_flv_bool srs_flv_is_sequence_header(char* data, int32_t size); |
355 | /** | 355 | /** |
356 | * whether the video body is keyframe | 356 | * whether the video body is keyframe |
357 | * @param data, the data of tag, read by srs_flv_read_tag_data(). | 357 | * @param data, the data of tag, read by srs_flv_read_tag_data(). |
358 | * @param size, the size of tag, read by srs_flv_read_tag_data(). | 358 | * @param size, the size of tag, read by srs_flv_read_tag_data(). |
359 | */ | 359 | */ |
360 | -extern flv_bool srs_flv_is_keyframe(char* data, int32_t size); | 360 | +extern srs_flv_bool srs_flv_is_keyframe(char* data, int32_t size); |
361 | 361 | ||
362 | /************************************************************* | 362 | /************************************************************* |
363 | ************************************************************** | 363 | ************************************************************** |
-
请 注册 或 登录 后发表评论