正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -45,14 +45,15 @@ int main(int argc, char** argv) | @@ -45,14 +45,15 @@ int main(int argc, char** argv) | ||
| 45 | exit(-1); | 45 | exit(-1); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | - for (int opt = 0; opt < argc; opt++) { | 48 | + int opt; |
| 49 | + for (opt = 0; opt < argc; opt++) { | ||
| 49 | srs_human_trace("The argv[%d]=%s", opt, argv[opt]); | 50 | srs_human_trace("The argv[%d]=%s", opt, argv[opt]); |
| 50 | } | 51 | } |
| 51 | 52 | ||
| 52 | // fill the options for mac | 53 | // fill the options for mac |
| 53 | char* in_file = NULL; | 54 | char* in_file = NULL; |
| 54 | char* out_rtmp_url = NULL; | 55 | char* out_rtmp_url = NULL; |
| 55 | - for (int opt = 0; opt < argc - 1; opt++) { | 56 | + for (opt = 0; opt < argc - 1; opt++) { |
| 56 | // ignore all options except -i and -y. | 57 | // ignore all options except -i and -y. |
| 57 | char* p = argv[opt]; | 58 | char* p = argv[opt]; |
| 58 | 59 |
-
请 注册 或 登录 后发表评论