1
0
Fork 0
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:
winlin 2015-03-11 14:48:51 +08:00
parent 5370493140
commit f247ac9daf
5 changed files with 98 additions and 13 deletions

View file

@ -53,7 +53,8 @@ int main(int argc, char** argv)
// user option parse index.
int opt = 0;
// user options.
char* in_flv_file; char* out_rtmp_url;
char* in_flv_file = NULL;
char* out_rtmp_url = NULL;
// rtmp handler
srs_rtmp_t ortmp;
// flv handler
@ -89,6 +90,15 @@ int main(int argc, char** argv)
}
}
if (!in_flv_file) {
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_flv_file);
srs_human_trace("output: %s", out_rtmp_url);