mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix build failed for stdc++
This commit is contained in:
parent
4af1299e08
commit
bd652e4607
1 changed files with 3 additions and 2 deletions
|
@ -154,7 +154,8 @@ int main(int argc, char** argv)
|
||||||
int pts = 0;
|
int pts = 0;
|
||||||
// @remark, to decode the file.
|
// @remark, to decode the file.
|
||||||
char* p = h264_raw;
|
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.
|
// @remark, read a frame from file buffer.
|
||||||
char* data = NULL;
|
char* data = NULL;
|
||||||
int size = 0;
|
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")))))));
|
(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.
|
// @remark, when use encode device, it not need to sleep.
|
||||||
if (count == 10) {
|
if (count++ == 9) {
|
||||||
usleep(1000 * 1000 * count / fps);
|
usleep(1000 * 1000 * count / fps);
|
||||||
count = 0;
|
count = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue