1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 19:31:53 +00:00

fix c99 build failed.

This commit is contained in:
winlin 2017-01-31 22:17:27 +08:00
parent 858951da49
commit b6bb3f2446

View file

@ -45,14 +45,15 @@ int main(int argc, char** argv)
exit(-1);
}
for (int opt = 0; opt < argc; opt++) {
int opt;
for (opt = 0; opt < argc; opt++) {
srs_human_trace("The argv[%d]=%s", opt, argv[opt]);
}
// fill the options for mac
char* in_file = NULL;
char* out_rtmp_url = NULL;
for (int opt = 0; opt < argc - 1; opt++) {
for (opt = 0; opt < argc - 1; opt++) {
// ignore all options except -i and -y.
char* p = argv[opt];