diff --git a/README.md b/README.md index 127bc4449..4b3c0a5ea 100755 --- a/README.md +++ b/README.md @@ -238,7 +238,7 @@ The `features`, `compare`, `release` and `performance` of SRS. 1. Stable [1.0release branch][branch1]. 1. Support publish h264 raw stream([CN][v2_CN_SrsLibrtmp2], [EN][v2_EN_SrsLibrtmp2]) by srs-librtmp. 1. Support [6k+ clients][bug #194], 3Gbps per process. -1. Suppport [English wiki][v1_EN_Home). +1. Suppport [English wiki][v1_EN_Home]. 1. Research and simplify st, [bug #182][bug #182]. 1. Support compile [srs-librtmp on windows][srs-librtmp], [bug #213][bug #213]. 1. Support [10k+ clients][bug #251], 4Gbps per process. @@ -1016,6 +1016,10 @@ Winlin [v1_EN_Edge]: https://github.com/ossrs/srs/wiki/v1_EN_Edge [v1_CN_RtmpUrlVhost]: https://github.com/ossrs/srs/wiki/v1_CN_RtmpUrlVhost [v1_EN_RtmpUrlVhost]: https://github.com/ossrs/srs/wiki/v1_EN_RtmpUrlVhost +[v1_CN_RTMPHandshake]: https://github.com/ossrs/srs/wiki/v1_CN_RTMPHandshake +[v1_EN_RTMPHandshake]: https://github.com/ossrs/srs/wiki/v1_EN_RTMPHandshake +[v1_CN_HTTPServer]: https://github.com/ossrs/srs/wiki/v1_CN_HTTPServer +[v1_EN_HTTPServer]: https://github.com/ossrs/srs/wiki/v1_EN_HTTPServer [v1_CN_DeliveryHLS]: https://github.com/ossrs/srs/wiki/v1_CN_DeliveryHLS [v1_EN_DeliveryHLS]: https://github.com/ossrs/srs/wiki/v1_EN_DeliveryHLS [v1_CN_DeliveryHLS2]: https://github.com/ossrs/srs/wiki/v1_CN_DeliveryHLS#hlsaudioonly diff --git a/trunk/research/librtmp/srs_h264_raw_publish.c b/trunk/research/librtmp/srs_h264_raw_publish.c index 58a0aff74..4e9cf5b06 100644 --- a/trunk/research/librtmp/srs_h264_raw_publish.c +++ b/trunk/research/librtmp/srs_h264_raw_publish.c @@ -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; }