正在显示
2 个修改的文件
包含
8 行增加
和
3 行删除
| @@ -238,7 +238,7 @@ The `features`, `compare`, `release` and `performance` of SRS. | @@ -238,7 +238,7 @@ The `features`, `compare`, `release` and `performance` of SRS. | ||
| 238 | 1. Stable [1.0release branch][branch1]. | 238 | 1. Stable [1.0release branch][branch1]. |
| 239 | 1. Support publish h264 raw stream([CN][v2_CN_SrsLibrtmp2], [EN][v2_EN_SrsLibrtmp2]) by srs-librtmp. | 239 | 1. Support publish h264 raw stream([CN][v2_CN_SrsLibrtmp2], [EN][v2_EN_SrsLibrtmp2]) by srs-librtmp. |
| 240 | 1. Support [6k+ clients][bug #194], 3Gbps per process. | 240 | 1. Support [6k+ clients][bug #194], 3Gbps per process. |
| 241 | -1. Suppport [English wiki][v1_EN_Home). | 241 | +1. Suppport [English wiki][v1_EN_Home]. |
| 242 | 1. Research and simplify st, [bug #182][bug #182]. | 242 | 1. Research and simplify st, [bug #182][bug #182]. |
| 243 | 1. Support compile [srs-librtmp on windows][srs-librtmp], [bug #213][bug #213]. | 243 | 1. Support compile [srs-librtmp on windows][srs-librtmp], [bug #213][bug #213]. |
| 244 | 1. Support [10k+ clients][bug #251], 4Gbps per process. | 244 | 1. Support [10k+ clients][bug #251], 4Gbps per process. |
| @@ -1016,6 +1016,10 @@ Winlin | @@ -1016,6 +1016,10 @@ Winlin | ||
| 1016 | [v1_EN_Edge]: https://github.com/ossrs/srs/wiki/v1_EN_Edge | 1016 | [v1_EN_Edge]: https://github.com/ossrs/srs/wiki/v1_EN_Edge |
| 1017 | [v1_CN_RtmpUrlVhost]: https://github.com/ossrs/srs/wiki/v1_CN_RtmpUrlVhost | 1017 | [v1_CN_RtmpUrlVhost]: https://github.com/ossrs/srs/wiki/v1_CN_RtmpUrlVhost |
| 1018 | [v1_EN_RtmpUrlVhost]: https://github.com/ossrs/srs/wiki/v1_EN_RtmpUrlVhost | 1018 | [v1_EN_RtmpUrlVhost]: https://github.com/ossrs/srs/wiki/v1_EN_RtmpUrlVhost |
| 1019 | +[v1_CN_RTMPHandshake]: https://github.com/ossrs/srs/wiki/v1_CN_RTMPHandshake | ||
| 1020 | +[v1_EN_RTMPHandshake]: https://github.com/ossrs/srs/wiki/v1_EN_RTMPHandshake | ||
| 1021 | +[v1_CN_HTTPServer]: https://github.com/ossrs/srs/wiki/v1_CN_HTTPServer | ||
| 1022 | +[v1_EN_HTTPServer]: https://github.com/ossrs/srs/wiki/v1_EN_HTTPServer | ||
| 1019 | [v1_CN_DeliveryHLS]: https://github.com/ossrs/srs/wiki/v1_CN_DeliveryHLS | 1023 | [v1_CN_DeliveryHLS]: https://github.com/ossrs/srs/wiki/v1_CN_DeliveryHLS |
| 1020 | [v1_EN_DeliveryHLS]: https://github.com/ossrs/srs/wiki/v1_EN_DeliveryHLS | 1024 | [v1_EN_DeliveryHLS]: https://github.com/ossrs/srs/wiki/v1_EN_DeliveryHLS |
| 1021 | [v1_CN_DeliveryHLS2]: https://github.com/ossrs/srs/wiki/v1_CN_DeliveryHLS#hlsaudioonly | 1025 | [v1_CN_DeliveryHLS2]: https://github.com/ossrs/srs/wiki/v1_CN_DeliveryHLS#hlsaudioonly |
| @@ -154,7 +154,8 @@ int main(int argc, char** argv) | @@ -154,7 +154,8 @@ int main(int argc, char** argv) | ||
| 154 | int pts = 0; | 154 | int pts = 0; |
| 155 | // @remark, to decode the file. | 155 | // @remark, to decode the file. |
| 156 | char* p = h264_raw; | 156 | char* p = h264_raw; |
| 157 | - for (int count = 0; p < h264_raw + file_size; count++) { | 157 | + int count = 0; |
| 158 | + for (; p < h264_raw + file_size;) { | ||
| 158 | // @remark, read a frame from file buffer. | 159 | // @remark, read a frame from file buffer. |
| 159 | char* data = NULL; | 160 | char* data = NULL; |
| 160 | int size = 0; | 161 | int size = 0; |
| @@ -188,7 +189,7 @@ int main(int argc, char** argv) | @@ -188,7 +189,7 @@ int main(int argc, char** argv) | ||
| 188 | (nut == 7? "SPS":(nut == 8? "PPS":(nut == 5? "I":(nut == 1? "P":(nut == 9? "AUD":(nut == 6? "SEI":"Unknown"))))))); | 189 | (nut == 7? "SPS":(nut == 8? "PPS":(nut == 5? "I":(nut == 1? "P":(nut == 9? "AUD":(nut == 6? "SEI":"Unknown"))))))); |
| 189 | 190 | ||
| 190 | // @remark, when use encode device, it not need to sleep. | 191 | // @remark, when use encode device, it not need to sleep. |
| 191 | - if (count == 10) { | 192 | + if (count++ == 9) { |
| 192 | usleep(1000 * 1000 * count / fps); | 193 | usleep(1000 * 1000 * count / fps); |
| 193 | count = 0; | 194 | count = 0; |
| 194 | } | 195 | } |
-
请 注册 或 登录 后发表评论