mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix c99 build failed.
This commit is contained in:
parent
858951da49
commit
b6bb3f2446
1 changed files with 3 additions and 2 deletions
|
@ -45,14 +45,15 @@ int main(int argc, char** argv)
|
||||||
exit(-1);
|
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]);
|
srs_human_trace("The argv[%d]=%s", opt, argv[opt]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// fill the options for mac
|
// fill the options for mac
|
||||||
char* in_file = NULL;
|
char* in_file = NULL;
|
||||||
char* out_rtmp_url = 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.
|
// ignore all options except -i and -y.
|
||||||
char* p = argv[opt];
|
char* p = argv[opt];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue