mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix the http parse bug.
This commit is contained in:
parent
5370493140
commit
f247ac9daf
5 changed files with 98 additions and 13 deletions
|
@ -41,7 +41,8 @@ int main(int argc, char** argv)
|
|||
// user option parse index.
|
||||
int opt = 0;
|
||||
// user options.
|
||||
char* in_rtmp_url; char* out_rtmp_url;
|
||||
char* in_rtmp_url = NULL;
|
||||
char* out_rtmp_url = NULL;
|
||||
// rtmp handler
|
||||
srs_rtmp_t irtmp, ortmp;
|
||||
|
||||
|
@ -74,6 +75,15 @@ int main(int argc, char** argv)
|
|||
}
|
||||
}
|
||||
|
||||
if (!in_rtmp_url) {
|
||||
srs_human_trace("input invalid, use -i <input>");
|
||||
return -1;
|
||||
}
|
||||
if (!out_rtmp_url) {
|
||||
srs_human_trace("output invalid, use -y <output>");
|
||||
return -1;
|
||||
}
|
||||
|
||||
srs_human_trace("input: %s", in_rtmp_url);
|
||||
srs_human_trace("output: %s", out_rtmp_url);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue